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

allow proc to be called before redirecting fixes #56 #57

Merged
merged 3 commits into from
Sep 6, 2013
Merged

allow proc to be called before redirecting fixes #56 #57

merged 3 commits into from
Sep 6, 2013

Conversation

oveddan
Copy link
Contributor

@oveddan oveddan commented Jul 17, 2013

No description provided.

@@ -79,6 +81,10 @@ def host_mismatch?
destination_host && destination_host != @request.host
end

def call_before_redirect(before_redirect)
before_redirect.call unless before_redirect.nil?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use directly @options[:before_redirect] here instead of having a parameter?

@rymai
Copy link
Collaborator

rymai commented Jul 18, 2013

Thanks @oveddan, it looks cool!

@oveddan
Copy link
Contributor Author

oveddan commented Jul 18, 2013

@rymai done

rymai added a commit that referenced this pull request Sep 6, 2013
Allow proc to be called before redirecting. Fixes #56
@rymai rymai merged commit ac36865 into tobmatth:master Sep 6, 2013
@rymai
Copy link
Collaborator

rymai commented Sep 6, 2013

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