Skip to content

Commit e07ebc1

Browse files
committed
Remove redundant namespaces from sample code of deprecated_method_warning [ci skip]
1 parent 6e5e8ba commit e07ebc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activesupport/lib/active_support/deprecation/reporting.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ def deprecation_warning(deprecated_method_name, message = nil, caller_backtrace
4848
private
4949
# Outputs a deprecation warning message
5050
#
51-
# ActiveSupport::Deprecation.deprecated_method_warning(:method_name)
51+
# deprecated_method_warning(:method_name)
5252
# # => "method_name is deprecated and will be removed from Rails #{deprecation_horizon}"
53-
# ActiveSupport::Deprecation.deprecated_method_warning(:method_name, :another_method)
53+
# deprecated_method_warning(:method_name, :another_method)
5454
# # => "method_name is deprecated and will be removed from Rails #{deprecation_horizon} (use another_method instead)"
55-
# ActiveSupport::Deprecation.deprecated_method_warning(:method_name, "Optional message")
55+
# deprecated_method_warning(:method_name, "Optional message")
5656
# # => "method_name is deprecated and will be removed from Rails #{deprecation_horizon} (Optional message)"
5757
def deprecated_method_warning(method_name, message = nil)
5858
warning = "#{method_name} is deprecated and will be removed from #{gem_name} #{deprecation_horizon}"

0 commit comments

Comments
 (0)