Sha256: d0abd475f507905e5f60693626f706b8509d6917c7272bee246fb0ee4f98d55d

Contents?: true

Size: 238 Bytes

Versions: 9

Compression:

Stored size: 238 Bytes

Contents

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

    def self.out_of_channel_notify( message )
      return unless active?
      Rails.logger.warn message
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
uniform_notifier-1.5.0 lib/uniform_notifier/rails_logger.rb
uniform_notifier-1.4.0 lib/uniform_notifier/rails_logger.rb
uniform_notifier-1.3.0 lib/uniform_notifier/rails_logger.rb
uniform_notifier-1.2.0 lib/uniform_notifier/rails_logger.rb
uniform_notifier-1.1.1 lib/uniform_notifier/rails_logger.rb
uniform_notifier-1.1.0 lib/uniform_notifier/rails_logger.rb
uniform_notifier-1.0.2 lib/uniform_notifier/rails_logger.rb
uniform_notifier-1.0.1 lib/uniform_notifier/rails_logger.rb
uniform_notifier-1.0.0 lib/uniform_notifier/rails_logger.rb