aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-03-12 16:21:01 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-03-12 16:21:01 -0700
commitc0a783610f5cf77050a55ad70b2cd2cf657bffe3 (patch)
tree9bafc79009d76a609071d1a641d19bbcb76ed116 /actionpack
parent77a09218f697676f8a05f06eeb5c89a26419d489 (diff)
downloadrails-c0a783610f5cf77050a55ad70b2cd2cf657bffe3.tar.gz
rails-c0a783610f5cf77050a55ad70b2cd2cf657bffe3.tar.bz2
rails-c0a783610f5cf77050a55ad70b2cd2cf657bffe3.zip
just ask the response for the commit status, we do not need to ask the jar
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/live.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/live.rb b/actionpack/lib/action_controller/metal/live.rb
index 43cf9b9723..fe63cf2b98 100644
--- a/actionpack/lib/action_controller/metal/live.rb
+++ b/actionpack/lib/action_controller/metal/live.rb
@@ -183,7 +183,7 @@ module ActionController
super
jar = request.cookie_jar
# The response can be committed multiple times
- jar.write self unless jar.committed?
+ jar.write self unless committed?
jar.commit!
headers.freeze
end