instance method
freeze
Ruby on Rails 2.2.3
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 2668
def freeze
@attributes.freeze; self
end
Defined in activerecord/lib/active_record/base.rb line 2668
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Base