spree_zone_pricing 0.1.49 → 0.1.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/app/models/currency_price.rb +1 -0
  2. metadata +1 -1
@@ -2,6 +2,7 @@ class CurrencyPrice < ActiveRecord::Base
2
2
 
3
3
  validates_presence_of :variant_id
4
4
  validates_presence_of :currency
5
+ validates_uniqueness_of :variant_id, :scope => [:currency]
5
6
 
6
7
  def self.currency_types
7
8
  [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_zone_pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.49
4
+ version: 0.1.50
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: