Module: OpenProject::ServicePacks::Patches::TimeEntryPatch
- Defined in:
- lib/open_project/service_packs/patches/time_entry_patch.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
76 77 78 79 80 81 82 83 84 85 |
# File 'lib/open_project/service_packs/patches/time_entry_patch.rb', line 76 def self.included(receiver) receiver.extend ClassMethods receiver.send :include, InstanceMethods receiver.class_eval do has_one :service_pack_entry, dependent: :delete after_create :log_consumed_units after_update :update_consumed_units before_destroy :get_consumed_units_back end end |