Module: RedmineEventsManager::Patches::TimeEntryPatch::InstanceMethods

Defined in:
lib/redmine_events_manager/patches/time_entry_patch.rb

Instance Method Summary collapse

Instance Method Details

#time_entry_create_eventObject



17
18
19
# File 'lib/redmine_events_manager/patches/time_entry_patch.rb', line 17

def time_entry_create_event
  RedmineEventsManager.trigger(TimeEntry, :create, self)
end

#time_entry_destroy_eventObject



21
22
23
24
# File 'lib/redmine_events_manager/patches/time_entry_patch.rb', line 21

def time_entry_destroy_event
  RedmineEventsManager.trigger(TimeEntry, :delete,
                               RedmineEventsManager::RemovedRecord.new(self))
end

#time_entry_update_eventObject



26
27
28
29
# File 'lib/redmine_events_manager/patches/time_entry_patch.rb', line 26

def time_entry_update_event
  RedmineEventsManager.trigger(TimeEntry, :update,
                               RedmineEventsManager::UpdatedRecord.new(self))
end