Created
May 18, 2009 06:53
-
-
Save Bregor/113353 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From da102e791a7271db92d7931fb5f0274373504617 Mon Sep 17 00:00:00 2001 | |
From: Maxim Filatov <[email protected]> | |
Date: Mon, 18 May 2009 10:50:03 +0400 | |
Subject: [PATCH] Error in Add currency_code option to PaypalGateway | |
--- | |
...7_add_currency_code_option_to_paypal_gateway.rb | 4 ++-- | |
1 files changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/vendor/extensions/payment_gateway/db/migrate/20090517173727_add_currency_code_option_to_paypal_gateway.rb b/vendor/extensions/payment_gateway/db/migrate/20090517173727_add_currency_code_option_to_paypal_gateway.rb | |
index 469fd31..fbff482 100644 | |
--- a/vendor/extensions/payment_gateway/db/migrate/20090517173727_add_currency_code_option_to_paypal_gateway.rb | |
+++ b/vendor/extensions/payment_gateway/db/migrate/20090517173727_add_currency_code_option_to_paypal_gateway.rb | |
@@ -3,10 +3,10 @@ class AddCurrencyCodeOptionToPaypalGateway < ActiveRecord::Migration | |
currency_code = GatewayOption.create(:name => "currency_code", | |
:textarea => false, | |
:description => "The currency you want to use (EUR, USD, refer to paypal doc)") | |
- gateway = Gateway.find_by_name(:name => "Paypal - Website Payments Pro") | |
+ gateway = Gateway.find_by_name("Paypal - Website Payments Pro") | |
gateway.gateway_options << currency_code | |
end | |
def self.down | |
end | |
-end | |
\ No newline at end of file | |
+end | |
-- | |
1.6.3.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment