-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How To Properly Remove Gem #398
Comments
Can you post the error log when you try to start your application when the gem is not present in your Gemfile? |
Did you remove |
This is from the error log:
|
I did not remove those things, but I will give that a try |
@bbonislawski After removing the ref to spree_auth in the frontend all.js, I tried running assets:precompile and got the same error I posted above. I also checked the devise.rb but the only thing in there is the secret key. |
@carltonsmith looks like app/controllers/application_controller.rb is raising an exception for Spree::AuthenticationHelpers, make sure your Spree setup + custom authentication is setup correctly. We can help you out more if you post more code examples about your setup. |
In installing Spree, I was following the instructions and inadvertently installed this gem in the process.
As it happens, my application is using a custom User class, so I don't need this gem. However, when I remove it, my application fails. I have followed the instructions on the Spree site for how to implement a custom user class, but when I remove the spree_auth_devise gem, the site won't launch. When I leave the gem in, the site will launch, but the login/logout links don't work correctly inside Spree. They are using the Spree routes, and not the routes I have defined in my routes.rb.
I need to know how to safely remove this gem from my installation.
The text was updated successfully, but these errors were encountered: