spree_zone_pricing 0.1.45 → 0.1.46

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/zone_price.rb +11 -3
  2. metadata +1 -1
@@ -1,11 +1,19 @@
1
- class ZonePrice < ActiveRecord::Base
1
+ class CurrencyPrice < ActiveRecord::Base
2
2
 
3
- belongs_to :zone
4
3
  belongs_to :variant
5
4
 
6
5
  validates_presence_of :price
7
6
  validates_numericality_of :price
8
7
  validates_presence_of :variant
9
- validates_presence_of :zone
8
+ validates_presence_of :currency
9
+
10
+ def self.currency_types
11
+ [
12
+ ["USD"],
13
+ ["GBP"],
14
+ ["CHF"],
15
+ ["EUR"]
16
+ ]
17
+ end
10
18
 
11
19
  end
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.45
4
+ version: 0.1.46
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: