readonly(value = true)
Instance Public methods
Sets readonly attributes for the returned relation. If value is true (default), attempting to update a record will result in an error.
users = User.readonly users.first.save => ActiveRecord::ReadOnlyRecord: ActiveRecord::ReadOnlyRecord
Please login to continue.