method

marshal_load

rails latest stable - Class: ActiveRecord::LazyAttributeHash

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

marshal_load(values)
public

No documentation available.

# File activerecord/lib/active_record/attribute_set/builder.rb, line 80
    def marshal_load(values)
      if values.is_a?(Hash)
        empty_hash = {}.freeze
        initialize(empty_hash, empty_hash, empty_hash, empty_hash, values)
        @materialized = true
      else
        initialize(*values)
      end
    end