Sha256: 4815c3f5f540d2d2653d17c8ededa70dd0b3d74d39e548f135bb6890c141c20f

Contents?: true

Size: 242 Bytes

Versions: 8

Compression:

Stored size: 242 Bytes

Contents

class Currency < ActiveRecord::Base
  has_many :money
  
  def symbol
    major_unit_symbol
  end
  
  def self.usd
  	# Pull the usd currency from GeoCountry
    find_by_internal_identifier("USD")
  end
  
  def self.blank
    new
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
erp_base_erp_svcs-3.0.7 app/models/currency.rb
erp_base_erp_svcs-3.0.6 app/models/currency.rb
erp_base_erp_svcs-3.0.5 app/models/currency.rb
erp_base_erp_svcs-3.0.4 app/models/currency.rb
erp_base_erp_svcs-3.0.3 app/models/currency.rb
erp_base_erp_svcs-3.0.2 app/models/currency.rb
erp_base_erp_svcs-3.0.1 app/models/currency.rb
erp_base_erp_svcs-3.0.0 app/models/currency.rb