Skip to content

Commit

Permalink
Merge pull request #32 from Fullscript/typo-fix-promotion-rule-rails42
Browse files Browse the repository at this point in the history
typo validates not validate - Spree::PromotionRule
  • Loading branch information
glongman authored Aug 2, 2017
2 parents 7d1fe12 + cadbcc9 commit 0fd16d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/promotion_rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0fd16d2

Please sign in to comment.