aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/delegation.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-04-28 11:48:05 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-04-28 11:48:05 -0300
commit85beb3f6bf3b5a19a09490e25de8676a30cc2640 (patch)
tree12ba4c715ca0f369f724ca650eab03b85b1aca92 /activesupport/lib/active_support/core_ext/module/delegation.rb
parent607f136d52e984323cbe2938c04c660ca55a5039 (diff)
downloadrails-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/active_support/core_ext/module/delegation.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/module/delegation.rb2
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'