Module: EventsManager::Patches::TimeEntryPatch::InstanceMethods
- Defined in:
- lib/events_manager/patches/time_entry_patch.rb
Instance Method Summary collapse
- #time_entry_create_event ⇒ Object
- #time_entry_destroy_event ⇒ Object
- #time_entry_update_event ⇒ Object
Instance Method Details
#time_entry_create_event ⇒ Object
19 20 21 |
# File 'lib/events_manager/patches/time_entry_patch.rb', line 19 def time_entry_create_event EventsManager.trigger(TimeEntry, :create, self) end |
#time_entry_destroy_event ⇒ Object
23 24 25 26 |
# File 'lib/events_manager/patches/time_entry_patch.rb', line 23 def time_entry_destroy_event EventsManager.trigger(TimeEntry, :delete, EventsManager::RemovedRecord.new(self)) end |
#time_entry_update_event ⇒ Object
28 29 30 31 |
# File 'lib/events_manager/patches/time_entry_patch.rb', line 28 def time_entry_update_event EventsManager.trigger(TimeEntry, :update, EventsManager::UpdatedRecord.new(self)) end |