forgot the removal of the middleware&the comment in application.rb

This commit is contained in:
Stefan Frank
2013-10-10 09:51:30 +02:00
parent ea4615d66a
commit 51e77a9883
3 changed files with 4 additions and 5 deletions
+2
View File
@@ -39,6 +39,8 @@ gem "fastercsv", "~> 1.5.0", :platforms => [:ruby_18, :jruby, :mingw_18]
gem 'globalize3', :git => 'https://github.com/svenfuchs/globalize3.git'
gem "delayed_job_active_record" # that's how delayed job's readme recommends it
gem 'request_store'
# TODO: adds #auto_link which was deprecated in rails 3.1
gem 'rails_autolink'
gem "will_paginate", '~> 3.0'
+2
View File
@@ -262,6 +262,7 @@ GEM
rdoc (3.12.2)
json (~> 1.4)
ref (1.0.5)
request_store (1.0.5)
rmagick (2.13.2)
rspec (2.13.0)
rspec-core (~> 2.13.0)
@@ -408,6 +409,7 @@ DEPENDENCIES
rb-fsevent
rb-readline
rdoc (>= 2.4.2)
request_store
rmagick (>= 1.15.17)
rspec (~> 2.0)
rspec-example_disabler
-5
View File
@@ -86,11 +86,6 @@ module OpenProject
# automatically compile translations.js
config.middleware.use I18n::JS::Middleware
# add the request-store to the middleware to make sure, that thread-loca variables are
# cleaned up after the request
require "request_store/middleware"
config.middleware.use RequestStore::Middleware
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"