From 85beb3f6bf3b5a19a09490e25de8676a30cc2640 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sun, 28 Apr 2013 11:48:05 -0300 Subject: Use new hash syntax in module delegation docs [ci skip] --- activesupport/lib/active_support/core_ext/module/delegation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support') 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' -- cgit v1.2.3