I have a model that uses a serialized column:
class Form < ActiveRecord::Base serialize :options, Hash end
Is there a way to make this serialization use JSON instead of YAML?
In Rails 3.1 you can just
class Form < ActiveRecord::Base serialize :column, JSON end
Hope that helps
1.4m articles
1.4m replys
5 comments
57.0k users