Class: ActionHero::LogSubscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/action_hero/log_subscriber.rb

Instance Method Summary collapse

Instance Method Details

#start_processing(event) ⇒ Object



4
5
6
7
8
9
# File 'lib/action_hero/log_subscriber.rb', line 4

def start_processing( event )
  controller_name = "#{event.payload[:params]['controller'].camelize}Controller"
  unless event.payload[:controller] == controller_name
    info "[Action Hero] No explicit #{controller_name} defined, using #{event.payload[:controller]}"
  end
end