From 348f8e0c916a24d17847dc84ffd7054612fe95c5 Mon Sep 17 00:00:00 2001 From: Michael Gee Date: Fri, 4 Jan 2019 11:50:30 -0500 Subject: Clarify benefit of `delegate_missing_to` Removing the explicit receiver clarifies the purpose of `delegate_missing_to`. --- activesupport/lib/active_support/core_ext/module/delegation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') 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 # -- cgit v1.2.3