Skip to content

Commit

Permalink
User table currencies if exits in ChargebackRateDetailCurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Oct 1, 2019
1 parent 6ab0b2b commit fb221cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/chargeback_rate_detail_currency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class ChargebackRateDetailCurrency < ApplicationRecord

has_many :chargeback_rate_detail, :foreign_key => "chargeback_rate_detail_currency_id"

self.table_name = 'currencies' unless ActiveRecord::Base.connection.table_exists?('chargeback_rate_detail_currencies')

CURRENCY_FILE = "/currency_iso.json".freeze
FIXTURE_DIR = Money::Currency::Loader::DATA_PATH.freeze

Expand Down

0 comments on commit fb221cd

Please sign in to comment.