spree-contrib / spree-multi-domain

Multiple Spree stores on different domains - single unified backed for processing orders
https://guides.spreecommerce.org
194 stars 191 forks source link

Promotion::Rule Store throws exception #94

Open ghost opened 10 years ago

ghost commented 10 years ago

applicable? is not implemented.

This will fix it, or you guys might add it your next commit

Spree::Promotion::Rules::Store.class_eval do
  def applicable?(promotable)
    promotable.is_a?(Spree::Order)
  end
end