From 2dcd0016e8211055e70af4d88e6b1d5300521b1b Mon Sep 17 00:00:00 2001 From: Eliot Sykes Date: Sat, 18 Jul 2015 14:22:55 +0100 Subject: Fix formatting of force_ssl options documentation [ci skip] --- actionpack/lib/action_controller/metal/force_ssl.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'actionpack/lib/action_controller/metal') diff --git a/actionpack/lib/action_controller/metal/force_ssl.rb b/actionpack/lib/action_controller/metal/force_ssl.rb index d920668184..e31d65aac2 100644 --- a/actionpack/lib/action_controller/metal/force_ssl.rb +++ b/actionpack/lib/action_controller/metal/force_ssl.rb @@ -55,10 +55,10 @@ module ActionController # You can pass any of the following options to affect the before_action callback # * only - The callback should be run only for this action # * except - The callback should be run for all actions except this action - # * if - A symbol naming an instance method or a proc; the callback - # will be called only when it returns a true value. - # * unless - A symbol naming an instance method or a proc; the callback - # will be called only when it returns a false value. + # * if - A symbol naming an instance method or a proc; the + # callback will be called only when it returns a true value. + # * unless - A symbol naming an instance method or a proc; the + # callback will be called only when it returns a false value. def force_ssl(options = {}) action_options = options.slice(*ACTION_OPTIONS) redirect_options = options.except(*ACTION_OPTIONS) @@ -71,8 +71,8 @@ module ActionController # Redirect the existing request to use the HTTPS protocol. # # ==== Parameters - # * host_or_options - Either a host name or any of the url & redirect options - # available to the force_ssl method. + # * host_or_options - Either a host name or any of the url & + # redirect options available to the force_ssl method. def force_ssl_redirect(host_or_options = nil) unless request.ssl? options = { -- cgit v1.2.3