Class: UniformNotifier::RailsLogger

Inherits:
Base
  • Object
show all
Defined in:
lib/uniform_notifier/rails_logger.rb

Class Method Summary collapse

Methods inherited from Base

inline_notify, wrap_js_association

Class Method Details

.active?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/uniform_notifier/rails_logger.rb', line 3

def self.active?
  UniformNotifier.rails_logger
end

.out_of_channel_notify(message) ⇒ Object



7
8
9
10
# File 'lib/uniform_notifier/rails_logger.rb', line 7

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