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.
# File activerecord/lib/active_record/base.rb, line 628 def readonly? @readonly end
To force an ActiveRecord model to be read only you can do something along these lines:
class DelicateInfo < ActiveRecord::Base def readonly? true end end