Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

More Convention, Less Configuration #77

Closed
msheakoski opened this issue Feb 5, 2013 · 0 comments
Closed

More Convention, Less Configuration #77

msheakoski opened this issue Feb 5, 2013 · 0 comments

Comments

@msheakoski
Copy link
Contributor

In the README usage example, why have serialize :data, ActiveRecord::Coders::Hstore as the standard way of using the gem? It makes working with the gem more cumbersome and error-prone because you need to remember to set a {} before using the attr or you get an error.

In my opinion, serialize :data, ActiveRecord::Coders::Hstore.new should be the default usage, which uses a default value of {} or HashWithIndifferentAccess.new unless something different is specified in the constructor. What are your thoughts?

@diogob diogob closed this as completed in eeab338 Feb 7, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants