Skip to content

Commit

Permalink
typo validates not validate - Spree::PromotionRule
Browse files Browse the repository at this point in the history
  • Loading branch information
glongman committed Aug 2, 2017
1 parent 7d1fe12 commit cadbcc9
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 cadbcc9

Please sign in to comment.