Method: AttrJson::Model.to_serialization_coder
- Defined in:
- lib/attr_json/model.rb
.to_serialization_coder ⇒ Object
An ActiveModel::Type that can be used to serialize this model across an entire JSON(b) column.
179 180 181 |
# File 'lib/attr_json/model.rb', line 179 def to_serialization_coder @serialization_coder ||= AttrJson::SerializationCoderFromType.new(to_type) end |