instance method
readonly!
Ruby on Rails 3.2.22.5
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 633
def readonly!
@readonly = true
end
Defined in activerecord/lib/active_record/base.rb line 633
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Base