about summary refs log tree commit homepage
path: root/test/rails/app-2.1.2/config/environment.rb
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.1.2/config/environment.rb
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.1.2/config/environment.rb')
-rw-r--r--test/rails/app-2.1.2/config/environment.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/rails/app-2.1.2/config/environment.rb b/test/rails/app-2.1.2/config/environment.rb
new file mode 100644
index 0000000..7c720f6
--- /dev/null
+++ b/test/rails/app-2.1.2/config/environment.rb
@@ -0,0 +1,15 @@
+unless defined? RAILS_GEM_VERSION
+  RAILS_GEM_VERSION = ENV['UNICORN_RAILS_VERSION']
+end
+
+# Bootstrap the Rails environment, frameworks, and default configuration
+require File.join(File.dirname(__FILE__), 'boot')
+
+Rails::Initializer.run do |config|
+  config.frameworks -= [ :action_web_service, :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}",
+  }
+end