Skip to content

Override default values if parameter is present#2114

Merged
ujifgc merged 1 commit into
padrino:masterfrom
fidalgo:2123-use-the-overrides-in-controllers-default-values
Jan 4, 2017
Merged

Override default values if parameter is present#2114
ujifgc merged 1 commit into
padrino:masterfrom
fidalgo:2123-use-the-overrides-in-controllers-default-values

Conversation

@fidalgo
Copy link
Copy Markdown

@fidalgo fidalgo commented Jan 4, 2017

As reported in bug #2113 if we are using default values in the
controllers, and those values are present in the URL, they are not being
correctly replaced when building the URL.

The reason is we are using the default values as overrides and not
otherwise, the given values to override the default ones. This patch
fixes this behaviour and introduces a new test to validate it.

Closes #2113

As reported in bug padrino#2113 if we are using default values in the
controllers, and those values are present in the URL, they are not being
correctly replaced when building the URL.

The reason is we are using the default values as overrides and not
otherwise, the given values to override the default ones. This patch
fixes this behaviour and introduces a new test to validate it.
@ujifgc ujifgc merged commit f6a026a into padrino:master Jan 4, 2017
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.

Padrino::Routing absolut_url ignored the default values on url map

2 participants