Sha256: 572e58a407eba8845d2838502116c06ddd01e1a273174f5ebee44956f86d089a
Contents?: true
Size: 312 Bytes
Versions: 16
Compression:
Stored size: 312 Bytes
Contents
MongoMapper.class_eval do class << self def logger return @logger ||= Logger.new(nil) if defined?(Spec) @logger ||= ("irb" == $0) ? Logger.new(STDOUT) : (defined?(Rails) ? Rails.logger : Logger.new(STDOUT)) end def logger= logger @logger = logger end end end
Version data entries
16 entries across 16 versions & 1 rubygems