Skip to content
Browse files

ActionDispatch::Static not guaranteed to be present in production env…

…ironments
  • Loading branch information...
1 parent 1f67ed7 commit 75a1f770a496965b7913b46818ca837dd295ff07 @benaskins benaskins committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/whereuat/railtie.rb
View
2 lib/whereuat/railtie.rb
@@ -1,7 +1,7 @@
module Whereuat
class Railtie < Rails::Railtie
initializer 'whereuat.middleware' do |app|
- app.config.middleware.insert_after(ActionDispatch::Static, Whereuat::RackApp)
+ app.config.middleware.insert_before(Rack::Lock, Whereuat::RackApp)
end
rake_tasks do
Whereuat.load_rake_tasks!

0 comments on commit 75a1f77

Please sign in to comment.
Something went wrong with that request. Please try again.