aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-04-04 15:58:06 -0400
committerGitHub <noreply@github.com>2018-04-04 15:58:06 -0400
commit4c2625b7bec63ceb085e62f57ce785608fccf528 (patch)
tree2592e0106559d8dde3241e020369542b7e64fd42
parente1203433c09e1f72036cd036c8321e5db665f817 (diff)
parentf0faa8641649011ceca155894b446ad075e75d7e (diff)
downloadrails-4c2625b7bec63ceb085e62f57ce785608fccf528.tar.gz
rails-4c2625b7bec63ceb085e62f57ce785608fccf528.tar.bz2
rails-4c2625b7bec63ceb085e62f57ce785608fccf528.zip
Merge pull request #32457 from yhirano55/add_private_option_to_delegation_doc
[ci skip] Add :private option to delegation doc
-rw-r--r--activesupport/lib/active_support/core_ext/module/delegation.rb3
1 files changed, 2 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 ec3497173f..7f42f44efb 100644
--- a/activesupport/lib/active_support/core_ext/module/delegation.rb
+++ b/activesupport/lib/active_support/core_ext/module/delegation.rb
@@ -22,8 +22,9 @@ class Module
# ==== Options
# * <tt>:to</tt> - Specifies the target object
# * <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+
+ # * <tt>:allow_nil</tt> - If set to true, prevents a +Module::DelegationError+
# from being raised
+ # * <tt>:private</tt> - If set to true, changes method visibility to private
#
# The macro receives one or more method names (specified as symbols or
# strings) and the name of the target object via the <tt>:to</tt> option