From 1dbc792e6e6e91e93a958650c580520ace60e24c Mon Sep 17 00:00:00 2001 From: Torsten Braun Date: Wed, 23 Mar 2016 12:09:58 +0100 Subject: fixed spellin in the mattr_reader documentation renamed cattr_reader to mattr_reader --- activesupport/lib/active_support/core_ext/module/attribute_accessors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') 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..1106c65a0c 100644 --- a/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb +++ b/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb @@ -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 -- cgit v1.2.3 From e7b02a33281ea0c06ef2e785599f4e96786abfe3 Mon Sep 17 00:00:00 2001 From: Torsten Braun Date: Wed, 23 Mar 2016 14:20:49 +0100 Subject: fixed spelling in the attribute_accessors docu mattr_writer to mattr_reader --- activesupport/lib/active_support/core_ext/module/attribute_accessors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') 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 1106c65a0c..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 # instance_reader: false or instance_accessor: false. # # module HairColors - # mattr_writer :hair_colors, instance_reader: false + # mattr_reader :hair_colors, instance_reader: false # end # # class Person -- cgit v1.2.3