kelredd-mailer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mailer.rb +1 -1
- data/lib/mailer/version.rb +1 -1
- metadata +1 -1
data/lib/mailer.rb
CHANGED
@@ -132,7 +132,7 @@ module Mailer
|
|
132
132
|
|
133
133
|
def self.log(level, msg)
|
134
134
|
if(msg)
|
135
|
-
if !@@config.production? && MAILER_LOG_AS_PUTS
|
135
|
+
if !@@config.production? && defined?(MAILER_LOG_AS_PUTS) && MAILER_LOG_AS_PUTS
|
136
136
|
puts "[#{level.to_s.upcase}]: [mailer] #{msg}" if Mailer.config.development?
|
137
137
|
elsif @@config.logger && @@config.logger.respond_to?(level)
|
138
138
|
@@config.logger.send(level.to_s, msg)
|
data/lib/mailer/version.rb
CHANGED