nested-hstore icon indicating copy to clipboard operation
nested-hstore copied to clipboard

fixed casting string to hstore

Open ksz2k opened this issue 9 years ago • 1 comments

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

ksz2k avatar May 19 '15 08:05 ksz2k

Hi. Any update on this? Thanks.

hipek avatar Oct 15 '15 06:10 hipek