Skip to content

Commit

Permalink
Allow blank paths for Promotions
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Oct 21, 2013
1 parent 703dfb5 commit 26f2b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/promotion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Promotion < ActiveRecord::Base
validates_associated :rules

validates :name, presence: true
validates :path, uniqueness: true
validates :path, uniqueness: true, allow_blank: true
validates :usage_limit, numericality: { greater_than: 0, allow_nil: true }
validates :description, length: { maximum: 255 }

Expand Down

0 comments on commit 26f2b58

Please sign in to comment.