module ActiveRecord::ReadonlyAttributes::ClassMethods

def readonly_attributes

Returns an array of all the attributes that have been specified as readonly.
def readonly_attributes
  _attr_readonly
end