Class: Mongoid::Deprecation
- Includes:
- Singleton
- Defined in:
- lib/mongoid/deprecation.rb
Overview
:nodoc
Instance Method Summary collapse
-
#alert(message) ⇒ Object
Alert of a deprecation.
Instance Method Details
#alert(message) ⇒ Object
Alert of a deprecation. This will delegate to the logger and call warn on it.
Example:
deprecation.alert("Method no longer used")
12 13 14 |
# File 'lib/mongoid/deprecation.rb', line 12 def alert() @logger.warn("Deprecation: #{}") end |