nested-hstore
nested-hstore copied to clipboard
fixed casting string to hstore
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
Hi. Any update on this? Thanks.