From cadbcc917408868de0a44126ecba274d2476281b Mon Sep 17 00:00:00 2001 From: Geoff Longman Date: Wed, 2 Aug 2017 10:46:19 -0400 Subject: [PATCH] typo validates not validate - Spree::PromotionRule --- core/app/models/spree/promotion_rule.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/app/models/spree/promotion_rule.rb b/core/app/models/spree/promotion_rule.rb index 2e5a17cc509..f40876a2035 100644 --- a/core/app/models/spree/promotion_rule.rb +++ b/core/app/models/spree/promotion_rule.rb @@ -5,7 +5,7 @@ class PromotionRule < ActiveRecord::Base scope :of_type, ->(t) { where(type: t) } - validate :promotion, presence: true + validates :promotion, presence: true validate :unique_per_promotion, on: :create def self.for(promotable)