app/models/spree/promotion_rule.rb in spree_promo-1.1.1 vs app/models/spree/promotion_rule.rb in spree_promo-1.1.2.rc1

- old
+ new

@@ -1,8 +1,8 @@ # Base class for all promotion rules module Spree class PromotionRule < ActiveRecord::Base - belongs_to :promotion, :foreign_key => 'activator_id' + belongs_to :promotion, :foreign_key => 'activator_id', :class_name => "Spree::Promotion" scope :of_type, lambda {|t| {:conditions => {:type => t}}} validate :promotion, :presence => true validate :unique_per_activator, :on => :create