aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/response.rb
diff options
context:
space:
mode:
authorChristiaan Van den Poel <christiaan.vandenpoel@protime.eu>2014-05-15 16:08:53 +0200
committerChristiaan Van den Poel <christiaan.vandenpoel@gmail.com>2014-05-15 21:14:46 +0200
commit20fece149185d7eed03d464b1bbc8a7636bb4f98 (patch)
tree7263acd880b1353e9396d7ce8af79cb0ff28b3b5 /actionpack/lib/action_dispatch/http/response.rb
parentcf50bbd68c6ceb5a1ac095c5407b79cfc7214788 (diff)
downloadrails-20fece149185d7eed03d464b1bbc8a7636bb4f98.tar.gz
rails-20fece149185d7eed03d464b1bbc8a7636bb4f98.tar.bz2
rails-20fece149185d7eed03d464b1bbc8a7636bb4f98.zip
fixes stack level too deep exception on action named 'status' returning 'head :ok'
Diffstat (limited to 'actionpack/lib/action_dispatch/http/response.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index 3d27ff2b24..eaea93b730 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -296,6 +296,9 @@ module ActionDispatch # :nodoc:
cookies
end
+ def _status_code
+ @status
+ end
private
def before_committed