1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

AS guide: documents a use case for :instance_writer, based on a remark of Jeremy

This commit is contained in:
Xavier Noria 2010-03-15 16:11:13 +01:00
parent ac202a26ce
commit f53fddf366

View file

@ -1057,6 +1057,8 @@ module ActiveRecord
end
</ruby>
A model may find that option useful as a way to prevent mass-assignment from setting the attribute.
NOTE: Defined in +active_support/core_ext/class/attribute_accessors.rb+.
h4. Class Inheritable Attributes