module TrRMIte::EventHandling::Processing::ConditionalPersisting

Public Instance Methods

persist_state(event) click to toggle source

prepending this module ensures that consumers that include the EventHandling DSL will receive the `persist_state` callback **if and only if** they handled the event thus avoiding superfluous callbacks and possibly expensive save operations

Calls superclass method
# File lib/TrRMIte/event_handling.rb, line 68
def persist_state(event)
  super if handles? event
end