Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v7.0.0) is shown here.
freeze()
public
Clone and freeze
the attributes hash such that
associations are still accessible, even on destroyed records, but cloned
models will not be frozen.
# File activerecord/lib/active_record/core.rb, line 603
def freeze
@attributes = @attributes.clone.freeze
self
end