aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/response.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-04-26 14:33:57 -0500
committerJoshua Peek <josh@joshpeek.com>2009-04-26 14:33:57 -0500
commit04949096797a390105c7ab9fb9b99938d5921dd4 (patch)
tree16316242f307d2f7a41189720ff10ebf44770b50 /actionpack/lib/action_dispatch/http/response.rb
parentc8919f4c7ca13ad78987ea0c8497abe85249975b (diff)
downloadrails-04949096797a390105c7ab9fb9b99938d5921dd4.tar.gz
rails-04949096797a390105c7ab9fb9b99938d5921dd4.tar.bz2
rails-04949096797a390105c7ab9fb9b99938d5921dd4.zip
Inherit TestSession from Session::AbstractStore and add indifferent access to Session::AbstractStore.
Diffstat (limited to 'actionpack/lib/action_dispatch/http/response.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index 7bc9c62e2c..77c2dd0d7a 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -34,12 +34,13 @@ module ActionDispatch # :nodoc:
DEFAULT_HEADERS = { "Cache-Control" => "no-cache" }
attr_accessor :request
- attr_accessor :session, :assigns, :template, :layout
+ attr_accessor :assigns, :template, :layout
attr_accessor :redirected_to, :redirected_to_method_params
attr_writer :header
alias_method :headers=, :header=
+ delegate :session, :to => :request
delegate :default_charset, :to => 'ActionController::Base'
def initialize