Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

paypal_express_local_confirm preference not defined #31

Closed
chrise86 opened this issue Feb 2, 2012 · 6 comments
Closed

paypal_express_local_confirm preference not defined #31

chrise86 opened this issue Feb 2, 2012 · 6 comments

Comments

@chrise86
Copy link

chrise86 commented Feb 2, 2012

Getting the following when checking out:

NoMethodError in Spree::CheckoutController#paypal_payment

paypal_express_local_confirm preference not defined

Using Rails 3.1.3 and Spree 1.0.0.rc3 --edge

@chrise86
Copy link
Author

chrise86 commented Feb 2, 2012

Added an initializer containing:

rubySpree::AppConfiguration.class_eval do preference :paypal_express_local_confirm, :boolean, :default => true end

@chrise86 chrise86 closed this as completed Feb 2, 2012
@lucapette
Copy link

@chrise86 I've used the same fix but are we sure it is the right way of doing it. Probably the extension should do that. Don't you think?

@chrise86
Copy link
Author

chrise86 commented Feb 3, 2012

@lucapette yes definitely, if it is something that is essential to the extension then it should be offered as an option in the configuration or backend preferences as standard...

@lucapette
Copy link

@chrise86 If you're agree with me you could be re-open the issue. It's a good way of keeping on eye on the problem.

@LBRapid
Copy link

LBRapid commented Feb 21, 2012

This preference can now be set using Spree::PaypalExpress::Config[:paypal_express_local_confirm]. Defaults to true unless set in an initializer or elsewhere.

@lucapette
Copy link

@LBRapid thank you very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants