diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-09-19 16:47:06 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-09-19 16:47:06 +0200 |
commit | dcc941382b44eec0704c120cf1a73067c37ab79b (patch) | |
tree | 8a854a9bd7d8e1955804d7ba0f0daa4116b5c263 /activesupport/lib/active_support/core_ext/module | |
parent | 8641f4afd661f0f62a78833872202a2082d70004 (diff) | |
parent | 54b5596a6cfc656123ea84024f09738a1c6300d2 (diff) | |
download | rails-dcc941382b44eec0704c120cf1a73067c37ab79b.tar.gz rails-dcc941382b44eec0704c120cf1a73067c37ab79b.tar.bz2 rails-dcc941382b44eec0704c120cf1a73067c37ab79b.zip |
Merge pull request #21669 from amitsuroliya/improve_docs
Correcting `NameError` error message in `mattr_reader` method. [ci skip]
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module')
-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 a77da573fe..a084177b9f 100644 --- a/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb +++ b/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb @@ -19,9 +19,9 @@ class Module # The attribute name must be a valid method name in Ruby. # # module Foo - # mattr_reader :"1_Badname " + # mattr_reader :"1_Badname" # end - # # => NameError: invalid attribute name + # # => NameError: invalid attribute name: 1_Badname # # If you want to opt out the creation on the instance reader method, pass # <tt>instance_reader: false</tt> or <tt>instance_accessor: false</tt>. |