Method: ActiveRecord::Core#readonly?
- Defined in:
- lib/active_record/core.rb
#readonly? ⇒ Boolean
Returns true if the record is read only. Records loaded through joins with piggy-back attributes will be marked as read only since they cannot be saved.
483 484 485 |
# File 'lib/active_record/core.rb', line 483 def readonly? @readonly end |