diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-26 10:49:37 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-26 10:51:14 -0700 |
commit | 54becd1a53bae3805f598b0920c57452f2629b34 (patch) | |
tree | 932056210adda42c3ef8dbe4f3746a65302df3e8 /actionpack/lib | |
parent | 11ccdc8f171e8de87ef94e91a5305d73595c7dbf (diff) | |
download | rails-54becd1a53bae3805f598b0920c57452f2629b34.tar.gz rails-54becd1a53bae3805f598b0920c57452f2629b34.tar.bz2 rails-54becd1a53bae3805f598b0920c57452f2629b34.zip |
`headers` should delegate to the response object
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb index 85eba195ce..51562ec0fb 100644 --- a/actionpack/lib/action_controller/metal.rb +++ b/actionpack/lib/action_controller/metal.rb @@ -150,7 +150,8 @@ module ActionController # environment and response manually for performance reasons. attr_internal :response, :request - delegate :session, :headers, :to => "@_request" + delegate :session, :to => "@_request" + delegate :headers, :to => "@_response" def initialize @_request = nil |