Sha256: 8c333c3a344b8f55c3d394fbe335e769b2126df791bf0ea8c52b978e1a1592a4

Contents?: true

Size: 258 Bytes

Versions: 2

Compression:

Stored size: 258 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

2 entries across 2 versions & 1 rubygems

Version Path
spree_zone_pricing-0.1.51 app/models/currency_price.rb
spree_zone_pricing-0.1.50 app/models/currency_price.rb