You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the new version, the config.include (and probably config.exclude) seem to match the camelCased base_names of the routes. Previously, these filters worked based on the underscored Route names, as used in Rails. Nowadays (I am not currently sure which version changed this), I have to rewrite this filter to camelCased regexes.
Yes, I had no intent to change that and I don't see any reason why new way is better than the old. Overall I don't like how include/exclude options are working. They should really apply to route spec like /admin/posts/:post_id instead of helper name, but that is a story for another time.
In the new version, the config.include (and probably config.exclude) seem to match the camelCased base_names of the routes. Previously, these filters worked based on the underscored Route names, as used in Rails. Nowadays (I am not currently sure which version changed this), I have to rewrite this filter to camelCased regexes.
For example:
should be rewritten to:
I don't really mind this change, but for other users, it could be a breaking change.
Also I guess that this example of the readme does not work any longer because it tries to match on the underscore:
Maybe you could also include an example with a larger path?
The text was updated successfully, but these errors were encountered: