mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
14 lines
265 B
Ruby
14 lines
265 B
Ruby
class CoordinatorFee < ActiveRecord::Base
|
|
belongs_to :order_cycle
|
|
belongs_to :enterprise_fee
|
|
|
|
after_save :refresh_products_cache
|
|
after_destroy :refresh_products_cache
|
|
|
|
private
|
|
|
|
def refresh_products_cache
|
|
order_cycle.refresh_products_cache
|
|
end
|
|
end
|