diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-08-13 13:57:26 -0400 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-08-13 13:57:26 -0400 |
commit | 8f0541b702f023c3c0841a47747ba0c793fcbb17 (patch) | |
tree | 363152a2cfdadc5b6dbbf8cb70956272d41fe67f /actionpack/lib | |
parent | 621e0792907686f7d4b82801d97ac8d84d0c9ee0 (diff) | |
download | rails-8f0541b702f023c3c0841a47747ba0c793fcbb17.tar.gz rails-8f0541b702f023c3c0841a47747ba0c793fcbb17.tar.bz2 rails-8f0541b702f023c3c0841a47747ba0c793fcbb17.zip |
live response headers can be merged with a hash
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/live.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/live.rb b/actionpack/lib/action_controller/metal/live.rb index d8fe43b5af..bba75b22fd 100644 --- a/actionpack/lib/action_controller/metal/live.rb +++ b/actionpack/lib/action_controller/metal/live.rb @@ -72,6 +72,10 @@ module ActionController super end + def merge(other) + self.class.new @response, __getobj__.merge(other) + end + def to_hash __getobj__.dup end |