Sha256: 5ab91d2aaabe332468f431df53f9163564ac348fef345ce2ad9e2327e28af5b8
Contents?: true
Size: 433 Bytes
Versions: 12
Compression:
Stored size: 433 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: class Deprecation #:nodoc include Singleton # Alert of a deprecation. This will delegate to the logger and call warn on # it. # # Example: # # <tt>deprecation.alert("Method no longer used")</tt> def alert(message) @logger.warn("Deprecation: #{message}") end protected def initialize @logger = Mongoid::Logger.new end end end
Version data entries
12 entries across 12 versions & 2 rubygems