Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Use Devise.router_name when mounted inside an engine #6

Merged
merged 2 commits into from
Feb 5, 2014

Conversation

maeve
Copy link
Contributor

@maeve maeve commented Feb 4, 2014

When mounted inside another engine, the route helpers called by this gem may be namespaced. Devise handles this by setting up a Devise.router_name configuration option in the devise initializer, Our url helpers should respect this config instead of assuming that the routes will be mounted in the main application.

@maeve
Copy link
Contributor Author

maeve commented Feb 5, 2014

This is very similar to heartcombo/devise#2854

maeve pushed a commit that referenced this pull request Feb 5, 2014
Use Devise.router_name when mounted inside an engine
@maeve maeve merged commit 2652603 into master Feb 5, 2014
@maeve maeve deleted the use_namespaced_route_helpers branch February 5, 2014 06:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant