spree_zone_pricing 0.1.65 → 0.1.66
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/zone_currency.rb +1 -1
- metadata +1 -1
data/app/models/zone_currency.rb
CHANGED
@@ -4,7 +4,7 @@ class ZoneCurrency < ActiveRecord::Base
|
|
4
4
|
validates_presence_of :currency
|
5
5
|
validates_length_of :currency, :maximum => 3
|
6
6
|
validates_length_of :currency, :minimum => 3
|
7
|
-
validates_format_of :currency, :
|
7
|
+
validates_format_of :currency, :in => /[A-Z]/, :message => " must be upper case"
|
8
8
|
#validates_uniqueness_of :zone_id, :scope => [:currency]
|
9
9
|
validates_uniqueness_of :zone_id
|
10
10
|
|