diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2017-02-15 15:23:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-15 15:23:19 -0500 |
commit | a9231d56e4a6fcbfe39518f60239d305a8a80363 (patch) | |
tree | c9adc40dbf970cab3e562639b4bffc10cf60086b /activesupport | |
parent | 6a61ca3ecd0f31fde5348909e7b6fdecd783c9a1 (diff) | |
parent | e07ebc13f41ee708de487220feea753f38fe7914 (diff) | |
download | rails-a9231d56e4a6fcbfe39518f60239d305a8a80363.tar.gz rails-a9231d56e4a6fcbfe39518f60239d305a8a80363.tar.bz2 rails-a9231d56e4a6fcbfe39518f60239d305a8a80363.zip |
Merge pull request #28016 from kenta-s/fix-docs-of-deprecated_method_warning
Remove redundant namespaces from sample code of `deprecated_method_wa…
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/deprecation/reporting.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/deprecation/reporting.rb b/activesupport/lib/active_support/deprecation/reporting.rb index b8d200ba94..58c5c50e30 100644 --- a/activesupport/lib/active_support/deprecation/reporting.rb +++ b/activesupport/lib/active_support/deprecation/reporting.rb @@ -48,11 +48,11 @@ module ActiveSupport private # Outputs a deprecation warning message # - # ActiveSupport::Deprecation.deprecated_method_warning(:method_name) + # deprecated_method_warning(:method_name) # # => "method_name is deprecated and will be removed from Rails #{deprecation_horizon}" - # ActiveSupport::Deprecation.deprecated_method_warning(:method_name, :another_method) + # deprecated_method_warning(:method_name, :another_method) # # => "method_name is deprecated and will be removed from Rails #{deprecation_horizon} (use another_method instead)" - # ActiveSupport::Deprecation.deprecated_method_warning(:method_name, "Optional message") + # deprecated_method_warning(:method_name, "Optional message") # # => "method_name is deprecated and will be removed from Rails #{deprecation_horizon} (Optional message)" def deprecated_method_warning(method_name, message = nil) warning = "#{method_name} is deprecated and will be removed from #{gem_name} #{deprecation_horizon}" |