Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

depreciate Bank#exchange

  • Loading branch information...
commit a79bf5e2c0ef9536245b57ea217e3523b5744803 1 parent f62d576
@semmons99 semmons99 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/money/bank.rb
View
2  lib/money/bank.rb
@@ -17,6 +17,8 @@ def initialize(&block)
end
def exchange(cents, from_currency, to_currency, &block)
+ warn '[DEPRECIATION] `exchange` will be removed in v3.2.0, use #exchange_with instead'
+
return cents if same_currency?(from_currency, to_currency)
rate = get_rate(from_currency, to_currency)
Please sign in to comment.
Something went wrong with that request. Please try again.