diff options
author | Jeremy Friesen <jeremy.n.friesen@gmail.com> | 2012-05-31 10:06:17 -0400 |
---|---|---|
committer | Jeremy Friesen <jeremy.n.friesen@gmail.com> | 2012-05-31 12:39:28 -0400 |
commit | 4791822368bf0b1238a096c353cd408c6f1fe8c4 (patch) | |
tree | 01cc7c11038ad05b7a62afb8fb75a5d946ccb775 /tools | |
parent | c51fb024063b5369a8d99b8c6e582feaf6c5a366 (diff) | |
download | rails-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 'tools')
0 files changed, 0 insertions, 0 deletions