Method: ActiveModel::Type::Value#serialize

Defined in:
activemodel/lib/active_model/type/value.rb

#serialize(value) ⇒ Object

Casts a value from the ruby type to a type that the database knows how to understand. The returned value from this method should be a String, Numeric, Date, Time, Symbol, true, false, or nil.



65
66
67
# File 'activemodel/lib/active_model/type/value.rb', line 65

def serialize(value)
  value
end