Module: EventsManager::Patches::TimeEntryPatch

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

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/events_manager/patches/time_entry_patch.rb', line 6

def self.included(base)
  base.send(:include, InstanceMethods)

  base.class_eval do
    unloadable

    after_create :time_entry_create_event
    after_destroy :time_entry_destroy_event
    after_update :time_entry_update_event
  end
end