Skip to content
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

Named routes are modifying passed options #3099

Merged
merged 1 commit into from Sep 22, 2011
Merged

Conversation

wrozka
Copy link

@wrozka wrozka commented Sep 22, 2011

When passing objects and options to named routes like profile_customer_url options are modified.
New keys are added: :_positional_args, :_positional_keys, because given options are first modified and then merged to returned hash.
This bug was introduced by version 3.1.0, this pull request corrects this behavior, it contains test and fixed code .

josevalim added a commit that referenced this pull request Sep 22, 2011
Named routes are modifying passed options
@josevalim josevalim merged commit 8de0bbe into rails:master Sep 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants