Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use new hash syntax in module delegation docs [ci skip]

  • Loading branch information...
commit 85beb3f6bf3b5a19a09490e25de8676a30cc2640 1 parent 607f136
Carlos Antonio da Silva carlosantoniodasilva authored
2  activesupport/lib/active_support/core_ext/module/delegation.rb
View
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.