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

refactor Phoenix.Router.Path.build_url to take a keyword list as it's third arg #161

Merged

Conversation

dmcclory
Copy link
Contributor

@dmcclory dmcclory commented Jul 8, 2014

When working on #150 I noticed that, based on the way Phoenix.Router.Path.build_url is written, there would be no way to add an optional port. It takes 3 arguments, and the third is an optional string.

This PR converts that third argument to a keyword list, which makes it possible to to pass port and scheme to %URI{}. It'd also make it easy add other URI parameters in the future, like query strings.

chrismccord added a commit that referenced this pull request Jul 8, 2014
refactor Phoenix.Router.Path.build_url to take a keyword list as it's third arg
@chrismccord chrismccord merged commit b930220 into phoenixframework:master Jul 8, 2014
@chrismccord
Copy link
Member

thanks!

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.

2 participants