spree / spree_gateway

Huge collection of payment gateways for @spree. Stripe, Braintree, Apple Pay, Authorize.net and many others!
https://spreecommerce.org
BSD 3-Clause "New" or "Revised" License
219 stars 438 forks source link

ActiveModel::MassAssignmentSecurity::Error trying to update Spree::Gateway::WorldPay entry #54

Closed dazoakley closed 11 years ago

dazoakley commented 11 years ago

As discussed on Google Groups, i'm having some troubles updating payment gateway details for a WorldPay gateway - I keep getting a "Can't mass-assign protected attributes: preferred_discover_login" error.

The app is a brand new rails app, with spree 1.2.2 and spree_gateway checked out from master (I also tried the 1-2-stable branch). I have a custom User model/auth system, (using my companies single sign-on), integrated following the spree docs, but no other code at all.

Any ideas what could be happening here?

Thanks,

Daz

radar commented 11 years ago

Please provide some steps to reproduce this problem. I cannot diagnose it without these

On 12/12/2012, at 4:48, Darren Oakley notifications@github.com wrote:

As discussed on Google Groups, i'm having some troubles updating payment gateway details for a WorldPay gateway - I keep getting a "Can't mass-assign protected attributes: preferred_discover_login" error.

The app is a brand new rails app, with spree 1.2.2 and spree_gateway checked out from master (I also tried the 1-2-stable branch). I have a custom User model/auth system, (using my companies single sign-on), integrated following the spree docs, but no other code at all.

Any ideas what could be happening here?

Thanks,

Daz

— Reply to this email directly or view it on GitHub.

JDutil commented 11 years ago

@radar this could be closed out as it appears to be fixed by https://github.com/spree/spree_gateway/commit/107bbb37914a46de5ade683816865f231079bc3f

GeekOnCoffee commented 11 years ago

@jdutil thanks for the update!