Class: Mongoid::Deprecation

Inherits:
Object show all
Includes:
Singleton
Defined in:
lib/mongoid/deprecation.rb

Overview

:nodoc

Instance Method Summary collapse

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(message)
  @logger.warn("Deprecation: #{message}")
end