Skip to content

Commit

Permalink
Fix undefined method index for #<Money::RatesStore::Memory:xxx> after…
Browse files Browse the repository at this point in the history
… updating money gem to 6.13.6 (#19)
  • Loading branch information
byReham authored and rmustafin committed Jan 8, 2020
1 parent a466a28 commit 9014c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/money/bank/russian_central_bank.rb
Expand Up @@ -15,7 +15,7 @@ def update_rates(date = Date.today)
@rates_updated_at = Time.now
@rates_updated_on = date
update_expired_at
store.send(:index)
store.send(:rates)
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/lib/money/bank/russian_central_bank_spec.rb
Expand Up @@ -34,7 +34,7 @@
it 'should delete all rates' do
bank.get_rate('RUB', 'USD')
bank.flush_rates
expect(bank.store.send(:index)).to be_empty
expect(bank.store.send(:rates)).to be_empty
end
end

Expand Down

0 comments on commit 9014c68

Please sign in to comment.