instance method
serialize
Ruby on Rails 7.1.6
Since v7.1.6Signature
serialize(value)
No documentation comment.
Parameters
-
valuereq
Source
# File activemodel/lib/active_model/type/binary.rb, line 30
def serialize(value)
return if value.nil?
Data.new(super)
end
Defined in activemodel/lib/active_model/type/binary.rb line 30
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Type::Binary