Polish the new deprecate_constant API docs

This commit is contained in:
Xavier Noria 2024-07-13 18:59:23 +02:00
parent 9f9dafbe53
commit 6903ac45e8

@ -44,7 +44,8 @@ def const_missing(missing_const_name)
# The +deprecator+ keyword argument is the object that will print the
# deprecation message, an instance of ActiveSupport::Deprecation.
#
# With that in place, client code referencing <tt>A::B</tt> will see
# With that in place, references to <tt>A::B</tt> still work, they
# evaluate to <tt>C::D</tt> now, and trigger a deprecation warning:
#
# DEPRECATION WARNING: A::B is deprecated! Use C::D instead.
# (called from ...)