Error upgrading to 0.7.5 of activerecord-postgres-hstore
Tonkpils opened this issue · 2 comments
Tonkpils commented
So I ran into this issue after upgrading to the latest version of activerecord-postgres-hstore
diogob/activerecord-postgres-hstore@ca34391
It seems that commit makes
elsif defined?(::Hstore) && column.type == :hstore && value && value.is_a?(Hash)
value = value.to_hstore
execute and since they removed to_hstore
in version 0.7.0 it throws a undefined method 'to_hstore' for {}:Hash
tlconnor commented
This should now be fixed, can you please retest against the latest gem?
Tonkpils commented
Works great! Thanks!