diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-15 16:18:05 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-15 16:18:37 -0300 |
commit | 16a8a68b7eb71e57fc457750758d2dc8e978584b (patch) | |
tree | 11a3b749a0889e3d2a38e919d70a1143c119fe77 /actionpack/lib/action_dispatch | |
parent | cf50bbd68c6ceb5a1ac095c5407b79cfc7214788 (diff) | |
parent | 20fece149185d7eed03d464b1bbc8a7636bb4f98 (diff) | |
download | rails-16a8a68b7eb71e57fc457750758d2dc8e978584b.tar.gz rails-16a8a68b7eb71e57fc457750758d2dc8e978584b.tar.bz2 rails-16a8a68b7eb71e57fc457750758d2dc8e978584b.zip |
Merge pull request #15118 from khelben/head_with_status_action_stack_level_too_deep
fixes stack level too deep exception on action named 'status' rendering 'head :ok'
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/http/response.rb | 3 |
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 |