Skip to content

fixed casting string to hstore#16

Open
ksz2k wants to merge 2 commits intotombenner:masterfrom
ksz2k:patch-1
Open

fixed casting string to hstore#16
ksz2k wants to merge 2 commits intotombenner:masterfrom
ksz2k:patch-1

Conversation

@ksz2k
Copy link
Copy Markdown

@ksz2k ksz2k commented May 19, 2015

The problem occurs when I try to #dup a record with hstore column, my hstore column is before typecast, and it's a string so I get the 'Hstore value should be a hash' exception.

For example:

u = User.find(6)
new_setting = u.settings.find(123).dup

Interesting is, that problem doesn't occurs when I previously assign duplicated record to local variable and then #dup:

u = User.find(6)
old_setting = u.settings.find(123)
new_setting = old_setting.dup

@hipek
Copy link
Copy Markdown

hipek commented Oct 15, 2015

Hi. Any update on this? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants