Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Custom Authenication undefined spree_current_user method #2076
I followed this guide http://ryanbigg.com/spree-guides/authentication.html to set custom authentication but I keep getting this error after a while when the server starts.
I created this example app to reproduce the issue https://github.com/huoxito/spree-custom-auth-example-app. The error appears immediately after any change is added to the User model. It looks like the app loses the spree_ helper methods. Sorry but I don't know how to say it better.
Actually you just start the server and then save the User model and that error breaks the app. Is that Custom Authentication guide already supposed to work fine?
The guide actually does cover it... it says this at the bottom of the
ApplicationController.send :include, Spree::AuthenticationHelpers
This means that the helpers will be included into
This issue is happening because
The commits added to master and 1-2-stable just then will fix this problem. Sorry that it happened.