instance method
freeze
Ruby on Rails 3.1.12
Since v2.2.3 Last seen in v3.2.22.5Signature
freeze()
Freeze the attributes hash such that associations are still accessible, even on destroyed records.
Source
# File activerecord/lib/active_record/base.rb, line 1837
def freeze
@attributes.freeze; self
end
Defined in activerecord/lib/active_record/base.rb line 1837
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Base