Sha256: 6e3c8ac4e1bc78f372b0bd977350ac30e02d1eb67c48dc326264530bc5b7f442

Contents?: true

Size: 206 Bytes

Versions: 7

Compression:

Stored size: 206 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
locomotive_cms-0.0.3.3 lib/locomotive/logger.rb
locomotive_cms-0.0.3.1 lib/locomotive/logger.rb
locomotive_cms-0.0.2.9 lib/locomotive/logger.rb
locomotive_cms-0.0.2.8 lib/locomotive/logger.rb
locomotive_cms-0.0.2.7 lib/locomotive/logger.rb
locomotive_cms-0.0.2.6 lib/locomotive/logger.rb
locomotive_cms-0.0.2.5 lib/locomotive/logger.rb