Class: ActionController::UrlRewriter
- Inherits:
-
Object
- Object
- ActionController::UrlRewriter
- Defined in:
- lib/url_rewriter.rb
Instance Method Summary collapse
-
#rewrite_with_secure_option(options = {}) ⇒ Object
Add a secure option to the rewrite method.
Instance Method Details
#rewrite_with_secure_option(options = {}) ⇒ Object
Add a secure option to the rewrite method.
7 8 9 10 11 |
# File 'lib/url_rewriter.rb', line 7 def rewrite_with_secure_option( = {}) secure = .delete(:secure) .merge!(:only_path => false, :protocol => secure ? 'https' : 'http') unless SslRequirement.disable_ssl_check? rewrite_without_secure_option end |