Sha256: e9bc0a71c46203ff45f1886b3265946e7febd3dcd0b0a0fb0969a21df075de38

Contents?: true

Size: 280 Bytes

Versions: 8

Compression:

Stored size: 280 Bytes

Contents

class Currency < ActiveRecord::Base
  attr_protected :created_at, :updated_at

  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-4.2.0 app/models/currency.rb
erp_base_erp_svcs-4.0.0 app/models/currency.rb
erp_base_erp_svcs-3.1.5 app/models/currency.rb
erp_base_erp_svcs-3.1.4 app/models/currency.rb
erp_base_erp_svcs-3.1.3 app/models/currency.rb
erp_base_erp_svcs-3.1.2 app/models/currency.rb
erp_base_erp_svcs-3.1.1 app/models/currency.rb
erp_base_erp_svcs-3.1.0 app/models/currency.rb