Skip to content
Browse files

Make rails admin static assets override everything apart from static …

…assets in the main application.
  • Loading branch information...
1 parent d07a2e4 commit 42bdbb878cefac96a3d6a611515132a94d9b2266 @stevemoulton stevemoulton committed with sferik Mar 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails_admin/engine.rb
2 lib/rails_admin/engine.rb
@@ -5,7 +5,7 @@ module RailsAdmin
class Engine < Rails::Engine
initializer "static assets" do |app|
if app.config.serve_static_assets
- app.middleware.insert 0, ::ActionDispatch::Static, "#{root}/public"
+ app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"

0 comments on commit 42bdbb8

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