Skip to content

Error upgrading to 0.7.5 of activerecord-postgres-hstore #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tonkpils opened this issue Feb 15, 2013 · 2 comments
Closed

Error upgrading to 0.7.5 of activerecord-postgres-hstore #24

Tonkpils opened this issue Feb 15, 2013 · 2 comments

Comments

@Tonkpils
Copy link
Contributor

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
Copy link
Owner

This should now be fixed, can you please retest against the latest gem?

@Tonkpils
Copy link
Contributor Author

Works great! 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

No branches or pull requests

2 participants