diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-28 11:48:05 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-28 11:48:05 -0300 |
commit | 85beb3f6bf3b5a19a09490e25de8676a30cc2640 (patch) | |
tree | 12ba4c715ca0f369f724ca650eab03b85b1aca92 /activesupport/lib | |
parent | 607f136d52e984323cbe2938c04c660ca55a5039 (diff) | |
download | rails-85beb3f6bf3b5a19a09490e25de8676a30cc2640.tar.gz rails-85beb3f6bf3b5a19a09490e25de8676a30cc2640.tar.bz2 rails-85beb3f6bf3b5a19a09490e25de8676a30cc2640.zip |
Use new hash syntax in module delegation docs [ci skip]
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/delegation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/delegation.rb b/activesupport/lib/active_support/core_ext/module/delegation.rb index e60f9a1fe6..6d42667e97 100644 --- a/activesupport/lib/active_support/core_ext/module/delegation.rb +++ b/activesupport/lib/active_support/core_ext/module/delegation.rb @@ -124,7 +124,7 @@ class Module # @bar = bar # end # - # delegate :name, to: :@bar, :allow_nil => true + # delegate :name, to: :@bar, allow_nil: true # end # # Foo.new("Bar").name # raises NoMethodError: undefined method `name' |