method
marshal_load
v6.1.3.1 -
Show latest stable
- Class:
ActiveModel::LazyAttributeHash
marshal_load(values)public
No documentation available.
# File activemodel/lib/active_model/attribute_set/builder.rb, line 146
def marshal_load(values)
if values.is_a?(Hash)
ActiveSupport::Deprecation.warn(<<~MSG)
Marshalling load from legacy attributes format is deprecated and will be removed in Rails 6.2.
MSG
empty_hash = {}.freeze
initialize(empty_hash, empty_hash, empty_hash, empty_hash, values)
@materialized = true
else
initialize(*values)
end
end