about summary refs log tree commit homepage
path: root/test/rails/app-2.3.2.1
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-02 03:07:48 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-02 03:10:38 -0700
commit99a1de487400577affdc5e22da253cc710735956 (patch)
tree08c48c585db8aaf6525483ec80d8947915d44586 /test/rails/app-2.3.2.1
parentb11f1901e30955bd4154f715db1522374842912e (diff)
downloadunicorn-99a1de487400577affdc5e22da253cc710735956.tar.gz
Recent changes made to the unicorn_rails loader were needed to
get ActiveRecordStore to load correctly.
Diffstat (limited to 'test/rails/app-2.3.2.1')
-rw-r--r--test/rails/app-2.3.2.1/Rakefile7
-rw-r--r--test/rails/app-2.3.2.1/config/environment.rb3
2 files changed, 9 insertions, 1 deletions
diff --git a/test/rails/app-2.3.2.1/Rakefile b/test/rails/app-2.3.2.1/Rakefile
new file mode 100644
index 0000000..fbebfca
--- /dev/null
+++ b/test/rails/app-2.3.2.1/Rakefile
@@ -0,0 +1,7 @@
+require(File.join(File.dirname(__FILE__), 'config', 'boot'))
+
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+require 'tasks/rails'
diff --git a/test/rails/app-2.3.2.1/config/environment.rb b/test/rails/app-2.3.2.1/config/environment.rb
index 18f03f8..17abdb7 100644
--- a/test/rails/app-2.3.2.1/config/environment.rb
+++ b/test/rails/app-2.3.2.1/config/environment.rb
@@ -6,7 +6,8 @@ end
 require File.join(File.dirname(__FILE__), 'boot')
 
 Rails::Initializer.run do |config|
-  config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
+  config.frameworks -= [ :active_resource, :action_mailer ]
+  config.action_controller.session_store = :active_record_store
   config.action_controller.session = {
     :session_key => "_unicorn_rails_test.#{rand}",
     :secret => "#{rand}#{rand}#{rand}#{rand}",