Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Bregor/113353 to your computer and use it in GitHub Desktop.
Save Bregor/113353 to your computer and use it in GitHub Desktop.
From da102e791a7271db92d7931fb5f0274373504617 Mon Sep 17 00:00:00 2001
From: Maxim Filatov <pipopolam@gmail.com>
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