module OpenProject::ServicePacks::Patches::TimeEntryActivityPatch
Public Class Methods
included(receiver)
click to toggle source
# 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