class Rails::WebProfiler::NotificationHandler

Public Instance Methods

call(*args) click to toggle source
# File lib/rails/web_profiler/notification_handler.rb, line 2
def call(*args)
  return unless args.length == 5

  event = ActiveSupport::Notifications::Event.new(*args)

  events = ::Rack::WebProfiler.data("rails.events")
  events ||= Events.new
  events << event
  ::Rack::WebProfiler.data("rails.events", events)
end