aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddie Lebow <elebow@users.noreply.github.com>2018-12-20 22:17:37 -0500
committerEddie Lebow <elebow@users.noreply.github.com>2018-12-20 22:17:37 -0500
commitff09c8cef9e017301b60e9cfb41ada4d42262336 (patch)
treeb356af70cc6ab2310e646f8795dd5034332d63a5
parent5d905abbe77295e65c88b50940af4bfb99a48482 (diff)
downloadrails-ff09c8cef9e017301b60e9cfb41ada4d42262336.tar.gz
rails-ff09c8cef9e017301b60e9cfb41ada4d42262336.tar.bz2
rails-ff09c8cef9e017301b60e9cfb41ada4d42262336.zip
Clarify the :to parameter of delegate
-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 3128539112..be90390ae4 100644
--- a/activesupport/lib/active_support/core_ext/module/delegation.rb
+++ b/activesupport/lib/active_support/core_ext/module/delegation.rb
@@ -19,7 +19,7 @@ class Module
# public methods as your own.
#
# ==== Options
- # * <tt>:to</tt> - Specifies the target object
+ # * <tt>:to</tt> - Specifies the target object name as a symbol or string
# * <tt>:prefix</tt> - Prefixes the new method with the target name or a custom prefix
# * <tt>:allow_nil</tt> - If set to true, prevents a +Module::DelegationError+
# from being raised