engine/lib/locomotive/logger.rb

11 lines
206 B
Ruby
Raw Normal View History

2010-06-14 13:04:01 +00:00
module Locomotive
module Logger
def self.method_missing(meth, args, &block)
if Locomotive.config.enable_logs == true
Rails.logger.send(meth, args)
end
end
end
end