rails/rails — comment on commit 85b64f98d100d37b3a232c315daa10fad37dccdc
File:  line 0
By matthuhiggins:

Could typecasting the values of an attributes hash could be an ActiveModel concern? It seems like a common need for models.

ActiveRecord reads each column type and converts attribute values. Data mappers for CouchDB, Cassandra, etc., convert input into defined types, which are stored as json, and vice versa. Does an ActiveModel::TypeCasting module make sense? (Similar to Dirty, it depends on ActiveModel::AttributeMethods).

This thought is inspired by some of the above comments, though it may be too much bloat for only the store.rb module.