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 /actionpack/CHANGELOG.md | |
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 'actionpack/CHANGELOG.md')
-rw-r--r-- | actionpack/CHANGELOG.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index b907eea3c1..b4d50b7072 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,5 +1,9 @@ ## Rails 4.0.0 (unreleased) ## +* Extracted redirect logic from `ActionController::ForceSSL::ClassMethods.force_ssl` into `ActionController::ForceSSL#force_ssl_redirect` + + *Jeremy Friesen* + * Make possible to use a block in button_to helper if button text is hard to fit into the name parameter, e.g.: |