Skip to content

Commit

Permalink
Fix Gestpay notification to avoid Ruby 1.9 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Fauser committed Feb 2, 2010
1 parent 28afe8a commit bbf79b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= ActiveMerchant CHANGELOG

* Fix Gestpay notification to avoid Ruby 1.9 warnings [cody]
* Fix Chronopay notification time parsing for Ruby 1.9 [Joe Van Dyk]
* Set default currency of Braintree to USD [cody]
* Fix QuickPay helper for Ruby 1.9 compat [cody]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def gross
end

def currency
CURRENCY_MAPPING.index(params['PAY1_UICCODE'])
# Ruby 1.9 compat
method = CURRENCY_MAPPING.respond_to?(:key) ? :key : :index
CURRENCY_MAPPING.send(method, params['PAY1_UICCODE'])
end

def test?
Expand Down

0 comments on commit bbf79b4

Please sign in to comment.