Records loaded through joins with piggy-back attributes will be marked as read only as they cannot be saved and return true to this query.
# File activerecord/lib/active_record/base.rb, line 1766 def readonly? @readonly == true 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