instance method
deserialize
Ruby on Rails 8.0.4
Since v5.2.8.1Signature
deserialize(value)
Converts a value from database input to the appropriate ruby type. The return value of this method will be returned from ActiveRecord::AttributeMethods::Read#read_attribute. The default implementation just calls Value#cast.
value The raw input, as provided from the database.
Parameters
-
valuereq
Source
# File activemodel/lib/active_model/type/value.rb, line 43
def deserialize(value)
cast(value)
end
Defined in activemodel/lib/active_model/type/value.rb line 43
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Type::Value