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:
parent
ac202a26ce
commit
f53fddf366
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue