diff options
Diffstat (limited to 'test/rails/app-2.3.8/config/environment.rb')
-rw-r--r-- | test/rails/app-2.3.8/config/environment.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/rails/app-2.3.8/config/environment.rb b/test/rails/app-2.3.8/config/environment.rb new file mode 100644 index 0000000..6eb092c --- /dev/null +++ b/test/rails/app-2.3.8/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 |