method

readonly!

Importance_1
readonly!() public

Marks this record as read only.

customer = Customer.first
customer.readonly!
customer.save # Raises an ActiveRecord::ReadOnlyRecord
Show source
Register or log in to add new notes.