Permalink
Browse files

fix for rails 3.2.3 attr protection patch

Fixes #50
  • Loading branch information...
1 parent b24354d commit 2c12f396678149239dc8a4cba2bb8882876a842a @ochko ochko committed with radar Apr 30, 2012
@@ -7,6 +7,8 @@ class Spree::BillingIntegration::PaypalExpress < Spree::BillingIntegration
preference :currency, :string, :default => 'USD'
preference :allow_guest_checkout, :boolean, :default => false
+ attr_accessible :preferred_login, :preferred_password, :preferred_signature, :preferred_review, :preferred_no_shipping, :preferred_currency, :preferred_allow_guest_checkout, :preferred_server, :preferred_test_mode
+
def provider_class
ActiveMerchant::Billing::PaypalExpressGateway
end
@@ -5,6 +5,8 @@ class Spree::BillingIntegration::PaypalExpressUk < Spree::BillingIntegration
preference :review, :boolean, :default => false
preference :no_shipping, :boolean, :default => false
+ attr_accessible :preferred_login, :preferred_password, :preferred_signature, :preferred_review, :preferred_no_shipping, :preferred_server, :preferred_test_mode
+
def provider_class
ActiveMerchant::Billing::PaypalExpressUkGateway
end

0 comments on commit 2c12f39

Please sign in to comment.