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

Add optional host option to force_ssl #3262

Merged
merged 1 commit into from
Oct 9, 2011
Merged

Conversation

subdigital
Copy link
Contributor

I wanted to be able to take advantage of custom subdomains for secure URLs, such as "https://secure.mysite.com" or piggy-back on Heroku's SSL.

Usage:

class FooController < ApplicationController
   force_ssl :host => "secure.mysite.com", :only => :index
   # ... 
end

It strips out the :host key before passing off the options to the before_filter method.

josevalim added a commit that referenced this pull request Oct 9, 2011
Add optional host option to force_ssl
@josevalim josevalim merged commit 2ed66fe into rails:master Oct 9, 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