Module: OpenLoam::Eventful

Extended by:
ActiveSupport::Concern
Included in:
Comment
Defined in:
lib/open_loam/eventful.rb

Overview

Lifecycle events by convention. Included in every generated entity:

class Equipment < OpenLoam::TenantRecord
include OpenLoam::Eventful
event_domain :rental          # -> "rental.equipment.created" etc.
end

Custom business events are published explicitly with OpenLoam::Events.publish.