-
Notifications
You must be signed in to change notification settings - Fork 30
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
Integrations Achemy -> Solidus | Devise | Base controller #10
Comments
👍 IMO we should add this to |
But you say it's better to make a comment in the readme file and let the developer attach this or it's better to add an initilizer in the engine and check if it's the case to set the parent controller... |
Absolutely. The decision the developer makes is which file she includes, right? So, IMO we should add this into the We want to make the integration as transparent, but in the same time, as easy as possible for developers. Since the Devise base controller is mandatory we should make this automatically happen, if the developer made he decision what kind of integration she wants. Alchemy in Solidus or Solidus in Alchemy. WDTY? |
Take a look at the PR #12 |
Great! Thanks |
This won't be an issue...it's more a suggestion to insert as Faq in wiki.
If you use gem 'solidus_auth_devise' and will you login in the frontend interface with alchemy helpers used in the layout, you must make a change in devise configurations and set the correct parent_controller:
That because the default parent_controller is ApplicationController and we attach all our alchemy helpers in the Spree::BaseController in the /lib/alchemy/solidus/alchemy_in_solidus.rb file.
The text was updated successfully, but these errors were encountered: