Permalink
Browse files

depreciate Bank#exchange

  • Loading branch information...
1 parent f62d576 commit a79bf5e2c0ef9536245b57ea217e3523b5744803 @semmons99 semmons99 committed Jul 16, 2010
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)

0 comments on commit a79bf5e

Please sign in to comment.