aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/deprecation
diff options
context:
space:
mode:
authorkenta-s <knt01222@gmail.com>2017-02-02 19:31:33 +0900
committerkenta-s <knt01222@gmail.com>2017-02-15 19:31:33 +0900
commite07ebc13f41ee708de487220feea753f38fe7914 (patch)
treee432eb37f7b4b41a1682e4b73a5fecfbb8ffd16c /activesupport/lib/active_support/deprecation
parent6e5e8bae227a8e3cb97d634196796bbd27b94c82 (diff)
downloadrails-e07ebc13f41ee708de487220feea753f38fe7914.tar.gz
rails-e07ebc13f41ee708de487220feea753f38fe7914.tar.bz2
rails-e07ebc13f41ee708de487220feea753f38fe7914.zip
Remove redundant namespaces from sample code of `deprecated_method_warning` [ci skip]
Diffstat (limited to 'activesupport/lib/active_support/deprecation')
-rw-r--r--activesupport/lib/active_support/deprecation/reporting.rb6
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}"