Module: OpenProject::ServicePacks::Patches::TimeEntryActivityPatch
- Defined in:
- lib/open_project/service_packs/patches/time_entry_activity_patch.rb
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/open_project/service_packs/patches/time_entry_activity_patch.rb', line 5 def self.included(receiver) receiver.class_eval do has_many :mapping_rates, foreign_key: :activity_id, inverse_of: 'activity', dependent: :delete_all has_many :service_packs, through: :mapping_rates end end |