aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorMichael Gee <michaelpgee@gmail.com>2019-01-04 11:50:30 -0500
committerGitHub <noreply@github.com>2019-01-04 11:50:30 -0500
commit348f8e0c916a24d17847dc84ffd7054612fe95c5 (patch)
treefdbf8d400550ee01e63a965164d85a43dfae7179 /activesupport
parent9f0928322fe0c1209e9cfd97020129797b5e635d (diff)
downloadrails-348f8e0c916a24d17847dc84ffd7054612fe95c5.tar.gz
rails-348f8e0c916a24d17847dc84ffd7054612fe95c5.tar.bz2
rails-348f8e0c916a24d17847dc84ffd7054612fe95c5.zip
Clarify benefit of `delegate_missing_to`
Removing the explicit receiver clarifies the purpose of `delegate_missing_to`.
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 be90390ae4..a652164973 100644
--- a/activesupport/lib/active_support/core_ext/module/delegation.rb
+++ b/activesupport/lib/active_support/core_ext/module/delegation.rb
@@ -266,7 +266,7 @@ class Module
# end
#
# def person
- # @event.detail.person || @event.creator
+ # detail.person || creator
# end
# end
#