Sha256: 00c86bd345c98e11b95238a244c1e2527c7c0bc6bd90ce8ddb1f072eba76d667

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

class ZoneCurrency < ActiveRecord::Base
	
	validates_presence_of :zone_id
	validates_presence_of :currency
	validates_length_of :currency, :maximum => 3
	validates_length_of :currency, :minimum => 3
	validates_format_of :currency, :in => /[A-Z]/, :message => " must be upper case"
	#validates_uniqueness_of :zone_id, :scope => [:currency]
	validates_uniqueness_of :zone_id

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_zone_pricing-0.1.66 app/models/zone_currency.rb