about summary refs log tree commit homepage
path: root/test/rails/app-2.3.3.1/config/environment.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-07-20 12:09:41 -0700
committerEric Wong <normalperson@yhbt.net>2009-07-20 12:09:41 -0700
commitfefbed6c37e1b8b4213a7b8fe8ecc58809ebc05d (patch)
treedcee0a005e09061a07e8c9191304ccf520b68f72 /test/rails/app-2.3.3.1/config/environment.rb
parenta8dfa694d76b9600d9cfdef624e15d5d9d730aee (diff)
downloadunicorn-fefbed6c37e1b8b4213a7b8fe8ecc58809ebc05d.tar.gz
Diffstat (limited to 'test/rails/app-2.3.3.1/config/environment.rb')
-rw-r--r--test/rails/app-2.3.3.1/config/environment.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/rails/app-2.3.3.1/config/environment.rb b/test/rails/app-2.3.3.1/config/environment.rb
new file mode 100644
index 0000000..17abdb7
--- /dev/null
+++ b/test/rails/app-2.3.3.1/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 -= [ :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}",
+  }
+end