Module: Dallal::InstanceMethods

Defined in:
lib/dallal.rb

Instance Method Summary collapse

Instance Method Details

#publish_notification_createdObject



29
30
31
32
33
# File 'lib/dallal.rb', line 29

def publish_notification_created
  Dallal::Events::EventPublisher.broadcast({
    class: self.class.name, id: self.id, event: :create
  })
end

#publish_notification_updatedObject



35
36
37
38
39
# File 'lib/dallal.rb', line 35

def publish_notification_updated
  Dallal::Events::EventPublisher.broadcast({
    class: self.class.name, id: self.id, event: :update
  })
end