diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-12-02 14:25:16 -0800 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-12-02 14:25:16 -0800 |
commit | afbefccf2a8a2b252fe3fd9565b732f9e0867a08 (patch) | |
tree | 72860a1f5d65b245121abba11b6ce09978c96874 /guides/source | |
parent | 0638d329c6b5a1d270150c1b8c74e413e98ef3f4 (diff) | |
parent | 7dfbd91b0780fbd6a1dd9bfbc176e10894871d2d (diff) | |
download | rails-afbefccf2a8a2b252fe3fd9565b732f9e0867a08.tar.gz rails-afbefccf2a8a2b252fe3fd9565b732f9e0867a08.tar.bz2 rails-afbefccf2a8a2b252fe3fd9565b732f9e0867a08.zip |
Merge pull request #11197 from gsamokovarov/unify-mattr-cattr
Unify cattr and mattr accessors declarations
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 4 |
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 |