-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Removes devise initializer from dummy generator #727
Conversation
Sounds reasonable to me 👍 CC @adammathys who I know pointed this out before |
I plan to let all Devise controllers inherit from |
I'm also 👍 this but I don't know this area of the code very well. CC'ing @brendandeere and @forkata as well who know it better than myself. |
One thing we'll have to check before merging is whether this breaks extensions which depend on auth_devise |
I just tested this with I also did a quick test with a gem that depends on Having said that, I do think this should be addressed in |
@forkata could TBH I really don't see the core have to know anything about something it does not depend on. |
solidus_virtual_gift_card will error out trying to run tests against this change with the devise token missing (not just throw a warning). Before I'd be for merging this in I think we need a plan for what we're going to do on gems such as those. I agree this shouldn't be in core, but I'd like an idea on what we're going to do for those other gems. |
Sorry, @forkata corrected me IRL, it is in fact just warning in the test_app, so it won't break specs. I'm 👍 on this change then, we should deal with it eventually but by no means a priority IMO. |
👍 |
The dummy app generator adds a devise initializer that's disabled in most of the time. The official solidus_auth_devise gem has it's own devise initializer, that never gets generated in the dummy app, because the generator skips existing devise initializers (what's good, to prevent overwriting in the real host app).
Rebased over master for the rspec fixes, trying build again. |
Removes devise initializer from dummy generator
Great. Thanks |
The dummy app generator adds a devise initializer that's disabled in most of the time.
The official solidus_auth_devise gem has it's own devise initializer, that never gets generated in the dummy app, because the generator skips existing devise initializers (what's good, to prevent overwriting in the real host app).
I don't know if this will have any impact on other existing extension, but IMO it shouldn't unless they depend on devise itself.