Sha256: f317c485051c11ae7bfed27f1d337863d4b91c1a1ef6eceab2c4ecdccc5a0186
Contents?: true
Size: 392 Bytes
Versions: 15
Compression:
Stored size: 392 Bytes
Contents
module Alchemy module Logger # Logs a warning to the Rails standard logger and adds some nicer formatting def self.warn(message, caller_string) Rails.logger.warn %(\n++++ WARNING: #{message}\nCalled from: #{caller_string}\n) return nil end def warn(message) Alchemy::Logger.warn(message, caller.first) end alias_method :warning, :warn end end
Version data entries
15 entries across 15 versions & 1 rubygems