lib/azeroth/request_handler.rb in azeroth-0.10.0 vs lib/azeroth/request_handler.rb in azeroth-0.10.1
- old
+ new
@@ -117,11 +117,10 @@
#
# Run a block triggering the event
#
# @return [Object] Result of given block
def trigger_event(event, &block)
- options.event_dispatcher(event)
- .dispatch(controller, &block)
+ options.event_registry.trigger(event, controller, &block)
end
# @private
#
# Attributes to be used on resource creating