Skip to content

Commit

Permalink
removed the deprecation warning. tested with money 3.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
liangzan committed Dec 18, 2010
1 parent 2684174 commit 0862df9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/eu_central_bank.rb
@@ -1,7 +1,7 @@
require 'rubygems'
require 'open-uri'
require 'nokogiri'
gem 'money', '=3.1.5'
gem 'money', '=3.5.4'
require 'money'

class InvalidCache < StandardError ; end
Expand Down Expand Up @@ -29,7 +29,6 @@ def save_rates(cache)
end

def exchange(cents, from_currency, to_currency)
warn '[DEPRECIATION] `exchange` will be removed in money v3.2.0 and eu_central_bank v0.2.0, use #exchange_with instead'
exchange_with(Money.new(cents, from_currency), to_currency)
end

Expand Down

0 comments on commit 0862df9

Please sign in to comment.