about summary refs log tree commit homepage
path: root/examples/rails_app-2.3.4/config
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-12 12:03:39 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-12 12:03:39 -0800
commite71a98deacd25bfaad5b80b0cd505e183933010c (patch)
tree261c29f5cd8059f259be6460d864be4edff51738 /examples/rails_app-2.3.4/config
parenta2c054810e035915d1e5ff27afd2b631de6ded0a (diff)
downloadupr-e71a98deacd25bfaad5b80b0cd505e183933010c.tar.gz
Revert "examples/rails_app-2.3.4: move middleware setup to config.ru"
This reverts commit 4770ea6d7a6eaf00cc19bc4fb2afd59071e8cf66.
Diffstat (limited to 'examples/rails_app-2.3.4/config')
-rw-r--r--examples/rails_app-2.3.4/config/environment.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/rails_app-2.3.4/config/environment.rb b/examples/rails_app-2.3.4/config/environment.rb
index f2670b8..c323778 100644
--- a/examples/rails_app-2.3.4/config/environment.rb
+++ b/examples/rails_app-2.3.4/config/environment.rb
@@ -25,12 +25,8 @@ Rails::Initializer.run do |config|
 
   # We MUST insert Upr before any parsers that read the body
   # since we need to wrap all calls to "rack.input"
-  # It is usually easier to just load it in RAILS_ROOT/config.ru
-  # (which is what we did, but here is a commented example of using
-  # upr inside the Rails middleware stack):
-  #
-  # config.middleware.insert_before('ActionController::ParamsParser',
-       # 'Upr',
+  config.middleware.insert_before('ActionController::ParamsParser',
+       'Upr',
        # The default is to use the Moneta::Memory store here.
        # This won't work right if you have multiple processes
        # serving your application, however.
@@ -52,5 +48,5 @@ Rails::Initializer.run do |config|
        # :drb => 'druby://127.0.0.1:2999',
        #
        # Update at most once every second (default is every 3 seconds)
-       # :frequency => 1)
+       :frequency => 1)
 end