Perform products cache refresh when producer property changed or destroyed

This commit is contained in:
Rohan Mitchell
2016-02-24 16:11:59 +11:00
parent 1b62dd06b8
commit 71862e00a7
3 changed files with 52 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
class ProducerProperty < ActiveRecord::Base
belongs_to :producer, class_name: 'Enterprise'
belongs_to :property, class_name: 'Spree::Property'
default_scope order("#{self.table_name}.position")