This is only added to the model when serialize is called, which ensures we do not make things slower when serialization is not used.

Files

  • activerecord/lib/active_record/attribute_methods/serialization.rb