aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/rack_delegation.rb
diff options
context:
space:
mode:
authorJeremy Friesen <jeremy.n.friesen@gmail.com>2012-05-31 10:06:17 -0400
committerJeremy Friesen <jeremy.n.friesen@gmail.com>2012-05-31 12:39:28 -0400
commit4791822368bf0b1238a096c353cd408c6f1fe8c4 (patch)
tree01cc7c11038ad05b7a62afb8fb75a5d946ccb775 /actionpack/lib/action_controller/metal/rack_delegation.rb
parentc51fb024063b5369a8d99b8c6e582feaf6c5a366 (diff)
downloadrails-4791822368bf0b1238a096c353cd408c6f1fe8c4.tar.gz
rails-4791822368bf0b1238a096c353cd408c6f1fe8c4.tar.bz2
rails-4791822368bf0b1238a096c353cd408c6f1fe8c4.zip
Extracted redirect logic from ActionController::Force::ClassMethods.force_ssl
Prior to this patch the existing .force_ssl method handles both defining the filter and handling the logic for performing the redirect. With this patch the logic for redirecting to the HTTPS protocol is separated from the filter logic that determines if a redirect should occur. By separating the two levels of behavior, an instance method for ActionController (i.e. #force_ssl_redirect) is exposed and available for more granular SSL enforcement. Cleaned up indentation.
Diffstat (limited to 'actionpack/lib/action_controller/metal/rack_delegation.rb')
0 files changed, 0 insertions, 0 deletions