Class: IIInteractor::LogSubscriber
- Inherits:
-
ActiveSupport::LogSubscriber
- Object
- ActiveSupport::LogSubscriber
- IIInteractor::LogSubscriber
- Defined in:
- lib/ii_interactor/log_subscriber.rb
Instance Method Summary collapse
Instance Method Details
#call(event) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/ii_interactor/log_subscriber.rb', line 12 def call(event) debug do interactor = event.payload[:interactor] "Called #{interactor.class} (#{additional_log(event)})" end end |
#calling(event) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/ii_interactor/log_subscriber.rb', line 5 def calling(event) debug do interactor = event.payload[:interactor] "Calling #{interactor.class} with #{interactor.context}" end end |