instance method
readonly!
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v3.2.22.5Signature
readonly!()
Marks this record as read only.
Source
# File activerecord/lib/active_record/base.rb, line 2901
def readonly!
@readonly = true
end
Defined in activerecord/lib/active_record/base.rb line 2901
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Base