[ARVADOS] updated: 83781a4f423a3671a5ec6d4b1cd6a0bbeacef3a6

git at public.curoverse.com git at public.curoverse.com
Thu May 1 08:53:07 EDT 2014


Summary of changes:
 services/api/config/initializers/authorization.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

       via  83781a4f423a3671a5ec6d4b1cd6a0bbeacef3a6 (commit)
      from  73d73c7b799ddb60363ddf409d8d301b27c82c00 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 83781a4f423a3671a5ec6d4b1cd6a0bbeacef3a6
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu May 1 08:49:11 2014 -0400

    Fixed middleware customization so that it doesn't assume the presence or
    location of ActionDispatch::Static.

diff --git a/services/api/config/initializers/authorization.rb b/services/api/config/initializers/authorization.rb
index e491e40..08189fa 100644
--- a/services/api/config/initializers/authorization.rb
+++ b/services/api/config/initializers/authorization.rb
@@ -1,5 +1,5 @@
 Server::Application.configure do
-  config.middleware.insert_before ActionDispatch::Static, ArvadosApiToken
   config.middleware.delete ActionDispatch::RemoteIp
-  config.middleware.insert_before ArvadosApiToken, ActionDispatch::RemoteIp
+  config.middleware.insert 0, ActionDispatch::RemoteIp
+  config.middleware.insert 1, ArvadosApiToken
 end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list