module Rack::Doge::Notify

Public Instance Methods

notify(data) click to toggle source
# File lib/doge/notify.rb, line 10
def notify(data)
  ActiveSupport::Notifications.instrument(@instrument_name, data)
end
should_notify?() click to toggle source
# File lib/doge/notify.rb, line 4
def should_notify?
  if defined?(ActiveSupport::Notifications)
    ActiveSupport::Notifications.notifier.listening?(@instrument_name)
  end
end