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
2.1m questions
2.1m answers
60 comments
57.0k users