You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.
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?
The text was updated successfully, but these errors were encountered:
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{}
orHashWithIndifferentAccess.new
unless something different is specified in the constructor. What are your thoughts?The text was updated successfully, but these errors were encountered: