aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2019-01-04 22:13:20 +0200
committerbogdanvlviv <bogdanvlviv@gmail.com>2019-01-04 22:18:00 +0200
commitee79a842ff0ca26380ba0f18e1e91cca28c7f07b (patch)
tree9f13a53f2c307f1aaeee65e7d2d81feabf474a16 /activesupport
parent663f6cc14fd01650546ed508efb3f7ad8e30135c (diff)
downloadrails-ee79a842ff0ca26380ba0f18e1e91cca28c7f07b.tar.gz
rails-ee79a842ff0ca26380ba0f18e1e91cca28c7f07b.tar.bz2
rails-ee79a842ff0ca26380ba0f18e1e91cca28c7f07b.zip
Clarify `delegate_missing_to` [ci skip]
Since #34864 removed explicit receiver to clarify the purpose of `delegate_missing_to`, I think it will be better to do the same a few lines above to easier figure out that `delegate_missing_to` defines `method_missing`, `respond_to_missing?` when comparing these examples.
Diffstat (limited to 'activesupport')
-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 a652164973..5652f2d1cc 100644
--- a/activesupport/lib/active_support/core_ext/module/delegation.rb
+++ b/activesupport/lib/active_support/core_ext/module/delegation.rb
@@ -243,7 +243,7 @@ class Module
# end
#
# def person
- # @event.detail.person || @event.creator
+ # detail.person || creator
# end
#
# private