about summary refs log tree commit homepage
path: root/test/rails/app-2.3.5/config/environment.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-01-05 16:13:53 -0800
committerEric Wong <normalperson@yhbt.net>2010-01-05 16:14:01 -0800
commit19dac8e60e12036b2717cb4933e79ac9efb04d40 (patch)
tree238433bb8b26657d05b6ae4a3b8cf70f59667d6e /test/rails/app-2.3.5/config/environment.rb
parent841f967666292f634c6af485f7ac452f36cc2028 (diff)
downloadunicorn-19dac8e60e12036b2717cb4933e79ac9efb04d40.tar.gz
Rails 2.3.3.1 is ancient
Diffstat (limited to 'test/rails/app-2.3.5/config/environment.rb')
-rw-r--r--test/rails/app-2.3.5/config/environment.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/rails/app-2.3.5/config/environment.rb b/test/rails/app-2.3.5/config/environment.rb
new file mode 100644
index 0000000..6eb092c
--- /dev/null
+++ b/test/rails/app-2.3.5/config/environment.rb
@@ -0,0 +1,17 @@
+# -*- encoding: binary -*-
+
+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