Skip to content

Commit 6903ac4

Browse files
committed
Polish the new deprecate_constant API docs
1 parent 9f9dafb commit 6903ac4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

activesupport/lib/active_support/deprecation/constant_accessor.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def const_missing(missing_const_name)
4444
# The +deprecator+ keyword argument is the object that will print the
4545
# deprecation message, an instance of ActiveSupport::Deprecation.
4646
#
47-
# With that in place, client code referencing <tt>A::B</tt> will see
47+
# With that in place, references to <tt>A::B</tt> still work, they
48+
# evaluate to <tt>C::D</tt> now, and trigger a deprecation warning:
4849
#
4950
# DEPRECATION WARNING: A::B is deprecated! Use C::D instead.
5051
# (called from ...)

0 commit comments

Comments
 (0)