Sha256: 031a962338ff109439e5d66bfb91f464401906d36bdcb60de50e167f544f03cf

Contents?: true

Size: 296 Bytes

Versions: 4

Compression:

Stored size: 296 Bytes

Contents

module Bullet
  module Presenter
    class RailsLogger < Base
      def self.active?
        Bullet.rails_logger
      end

      def self.out_of_channel( notice )
        return unless active?
        Rails.logger.warn ''
        Rails.logger.warn notice.full_notice
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bullet-2.0.0.rc2 lib/bullet/presenter/rails_logger.rb
bullet-2.0.0.rc1 lib/bullet/presenter/rails_logger.rb
bullet-2.0.0.beta.4 lib/bullet/presenter/rails_logger.rb
bullet-2.0.0.beta.3 lib/bullet/presenter/rails_logger.rb