diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-03-23 19:20:24 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-03-23 19:20:24 -0300 |
commit | fbe6e4e306b6f73fe29e33004956e5862fd7bd86 (patch) | |
tree | 6a905f32b29692b0ded9be7000a9e6bf2d59b9de /activesupport/lib | |
parent | 96ec8d92b12ecb6cc7e7744f7ad5deb7676ce7d2 (diff) | |
parent | e7b02a33281ea0c06ef2e785599f4e96786abfe3 (diff) | |
download | rails-fbe6e4e306b6f73fe29e33004956e5862fd7bd86.tar.gz rails-fbe6e4e306b6f73fe29e33004956e5862fd7bd86.tar.bz2 rails-fbe6e4e306b6f73fe29e33004956e5862fd7bd86.zip |
Merge pull request #24285 from tbraun89/patch-1
fixed spelling in the mattr_reader documentation
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/attribute_accessors.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb b/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb index 76825862d7..567ac825e9 100644 --- a/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb +++ b/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb @@ -27,7 +27,7 @@ class Module # <tt>instance_reader: false</tt> or <tt>instance_accessor: false</tt>. # # module HairColors - # mattr_writer :hair_colors, instance_reader: false + # mattr_reader :hair_colors, instance_reader: false # end # # class Person @@ -40,7 +40,7 @@ class Module # Also, you can pass a block to set up the attribute with a default value. # # module HairColors - # cattr_reader :hair_colors do + # mattr_reader :hair_colors do # [:brown, :black, :blonde, :red] # end # end |