-
Notifications
You must be signed in to change notification settings - Fork 147
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
#119 config.include and config.exclude does not work correctly with rails engine. #120
Conversation
… routes instead of adding _ between the engine name and route.
Thanks. Need review by @bogdan. But I prefere "_" between engine name and routes :) |
Sure i can change it. Let see what @bogdan has to say for this. |
I don't think it is right to concatenate routes without Maybe the rightest thing to be done is generate routes for Raiils sub-appliations in JS sub-object: Routes.engine.root_path
// instead of
Routes.engine_root_path Anyway behaviour change of engine route generation is a terrible backward compatibility problem so we need to allow people to have old behaviour. So in short term I would consider adding underscore here: In long term:
|
Sounds good @bogdan . Do you want to do the long term solution on a separate issue or do you want to do it on this one ? |
I prefer to go one by one. Rough solution first as we need to support it for pretty long time (maybe even forever). |
It is already here: https://github.com/railsware/js-routes#very-advanced-setup You can submit a PR if you think it is not clear enough. |
@bogdan i updated the pull request. Please review |
Good job thanks. |
#119 config.include and config.exclude does not work correctly with rails engine.
Fixes #119