diff options
author | Michael Gee <michaelpgee@gmail.com> | 2019-01-04 11:50:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-04 11:50:30 -0500 |
commit | 348f8e0c916a24d17847dc84ffd7054612fe95c5 (patch) | |
tree | fdbf8d400550ee01e63a965164d85a43dfae7179 /activesupport/lib/active_support | |
parent | 9f0928322fe0c1209e9cfd97020129797b5e635d (diff) | |
download | rails-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/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/delegation.rb | 2 |
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 # |