aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/response.rb
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2015-12-01 14:37:20 -0500
committereileencodes <eileencodes@gmail.com>2015-12-06 15:32:47 -0500
commit8350925bec434168f56b4fae22b5298cb4a83c41 (patch)
tree660994ee5d8017b18f418105022fbcf0231176e9 /actionpack/lib/action_dispatch/http/response.rb
parent492b134433653cbbea1b30c459d41054f0da5ad7 (diff)
downloadrails-8350925bec434168f56b4fae22b5298cb4a83c41.tar.gz
rails-8350925bec434168f56b4fae22b5298cb4a83c41.tar.bz2
rails-8350925bec434168f56b4fae22b5298cb4a83c41.zip
Stop violating law of demeter in response cookie_jar
This adds a new method to request and response so we don't need to violate the law of demeter. We are changing `Request` and `Response` so that they always have a `cookie_jar` This is a continuation on work to combine integration and controller test code bases in Rails.
Diffstat (limited to 'actionpack/lib/action_dispatch/http/response.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index a4852d7031..9a10dc73d9 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -413,7 +413,7 @@ module ActionDispatch # :nodoc:
def before_sending
headers.freeze
- request.cookie_jar.commit!
+ request.commit_cookie_jar!
end
def build_buffer(response, body)