fix for rails 3.2.3 attr protection patch

Fixes #50
This commit is contained in:
ochko 2012-04-30 16:55:32 +09:00 committed by Ryan Bigg
parent b24354dba5
commit 2c12f39667
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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