Class: HoboFields::SerializedObject

Inherits:
Object
  • Object
show all
Defined in:
lib/hobo_fields/serialized_object.rb

Constant Summary collapse

COLUMN_TYPE =
:text

Class Method Summary collapse

Class Method Details

.declared(model, name, options) ⇒ Object



7
8
9
# File 'lib/hobo_fields/serialized_object.rb', line 7

def self.declared(model, name, options)
  model.serialize name, options.delete(:class) || Object
end