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 622
def freeze
@attributes = @attributes.clone.freeze
self
end