diff options
author | Xavier Noria <fxn@hashref.com> | 2010-03-15 16:11:13 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-03-15 16:11:13 +0100 |
commit | f53fddf3665e6582768f4ab0c82b286b39e7fb19 (patch) | |
tree | 2637d54fedeb19c2e3d1dd0cf0b2dfc7913d4e04 /railties/guides/source/active_support_core_extensions.textile | |
parent | ac202a26ce4fa43b05921bee79fd5d5f3def2f88 (diff) | |
download | rails-f53fddf3665e6582768f4ab0c82b286b39e7fb19.tar.gz rails-f53fddf3665e6582768f4ab0c82b286b39e7fb19.tar.bz2 rails-f53fddf3665e6582768f4ab0c82b286b39e7fb19.zip |
AS guide: documents a use case for :instance_writer, based on a remark of Jeremy
Diffstat (limited to 'railties/guides/source/active_support_core_extensions.textile')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 11f0bc956f..8a65296976 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -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 |