Sha256: 97804256f11b8132b56e6c581004b32677eade47349cf92116f570c1e2602d80

Contents?: true

Size: 254 Bytes

Versions: 37

Compression:

Stored size: 254 Bytes

Contents

class CurrencyPrice < ActiveRecord::Base
	
	validates_presence_of :variant_id
	validates_presence_of :currency
	validates_uniqueness_of :variant_id, :scope => [:currency]

	def self.currency_types
		[
			"USD",
			"GBP",
			"CHF",
			"EUR"
		]
	end

end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
spree_zone_pricing-0.1.90 app/models/currency_price.rb
spree_zone_pricing-0.1.89 app/models/currency_price.rb
spree_zone_pricing-0.1.87 app/models/currency_price.rb
spree_zone_pricing-0.1.86 app/models/currency_price.rb
spree_zone_pricing-0.1.85 app/models/currency_price.rb
spree_zone_pricing-0.1.84 app/models/currency_price.rb
spree_zone_pricing-0.1.83 app/models/currency_price.rb
spree_zone_pricing-0.1.82 app/models/currency_price.rb
spree_zone_pricing-0.1.81 app/models/currency_price.rb
spree_zone_pricing-0.1.80 app/models/currency_price.rb
spree_zone_pricing-0.1.79 app/models/currency_price.rb
spree_zone_pricing-0.1.78 app/models/currency_price.rb
spree_zone_pricing-0.1.77 app/models/currency_price.rb
spree_zone_pricing-0.1.76 app/models/currency_price.rb
spree_zone_pricing-0.1.75 app/models/currency_price.rb
spree_zone_pricing-0.1.74 app/models/currency_price.rb
spree_zone_pricing-0.1.73 app/models/currency_price.rb
spree_zone_pricing-0.1.72 app/models/currency_price.rb
spree_zone_pricing-0.1.71 app/models/currency_price.rb
spree_zone_pricing-0.1.70 app/models/currency_price.rb