diff options
author | Eddie Lebow <elebow@users.noreply.github.com> | 2018-12-20 22:17:37 -0500 |
---|---|---|
committer | Eddie Lebow <elebow@users.noreply.github.com> | 2018-12-20 22:17:37 -0500 |
commit | ff09c8cef9e017301b60e9cfb41ada4d42262336 (patch) | |
tree | b356af70cc6ab2310e646f8795dd5034332d63a5 | |
parent | 5d905abbe77295e65c88b50940af4bfb99a48482 (diff) | |
download | rails-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.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 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 |