aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_support_core_extensions.md
diff options
context:
space:
mode:
authorGenadi Samokovarov <gsamokovarov@gmail.com>2013-06-30 16:45:32 +0300
committerGenadi Samokovarov <gsamokovarov@gmail.com>2013-12-02 23:57:20 +0200
commit7dfbd91b0780fbd6a1dd9bfbc176e10894871d2d (patch)
tree576c89e85c523b18fad887dcb3d329eaee97e2bf /guides/source/active_support_core_extensions.md
parent152edcc16b3f4da967fb7765d4abff5bc93c3626 (diff)
downloadrails-7dfbd91b0780fbd6a1dd9bfbc176e10894871d2d.tar.gz
rails-7dfbd91b0780fbd6a1dd9bfbc176e10894871d2d.tar.bz2
rails-7dfbd91b0780fbd6a1dd9bfbc176e10894871d2d.zip
Unify cattr and mattr accessors declarations
Diffstat (limited to 'guides/source/active_support_core_extensions.md')
-rw-r--r--guides/source/active_support_core_extensions.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md
index 54c1945f0e..90bb4ecaf6 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -624,7 +624,7 @@ NOTE: Defined in `active_support/core_ext/module/attr_internal.rb`.
#### Module Attributes
-The macros `mattr_reader`, `mattr_writer`, and `mattr_accessor` are analogous to the `cattr_*` macros defined for class. Check [Class Attributes](#class-attributes).
+The macros `mattr_reader`, `mattr_writer`, and `mattr_accessor` are the same as the `cattr_*` macros defined for class. In fact, the `cattr_*` macros are just aliases for the `mattr_*` macros. Check [Class Attributes](#class-attributes).
For example, the dependencies mechanism uses them:
@@ -1119,7 +1119,7 @@ end
A model may find it useful to set `:instance_accessor` to `false` as a way to prevent mass-assignment from setting the attribute.
-NOTE: Defined in `active_support/core_ext/class/attribute_accessors.rb`.
+NOTE: Defined in `active_support/core_ext/module/attribute_accessors.rb`. `active_support/core_ext/module/attribute_accessors.rb` is deprecated and will be removed in Ruby on Rails 4.2.
### Subclasses & Descendants