Sha256: 77923c767aa5e7324dc0f490918926cfe8534ae07995caed6a29880bb34ff0fe

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

module Killbill
  module CurrencyPlugin

    class CurrencyRate < ActiveRecord::Base

      belongs_to :currency_update

      scope :latest_rates_for_base_currency, ->(currency_update_id) { where("currency_update_id = ?", currency_update_id).order("target_currency ASC") }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
killbill-currency-plugin-3.0.0 lib/currency_plugin/models/currency_rate.rb
killbill-currency-plugin-2.0.0 lib/currency_plugin/models/currency_rate.rb
killbill-currency-plugin-1.3.1 lib/currency_plugin/models/currency_rate.rb
killbill-currency-plugin-1.3.0 lib/currency_plugin/models/currency_rate.rb