instance method
readonly_attributes
Ruby on Rails 5.0.7.2
Since v3.2.22.5Signature
readonly_attributes()
Returns an array of all the attributes that have been specified as readonly.
Source
# File activerecord/lib/active_record/readonly_attributes.rb, line 18
def readonly_attributes
self._attr_readonly
end
Defined in activerecord/lib/active_record/readonly_attributes.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub