diff options
author | José Valim <jose.valim@gmail.com> | 2012-01-15 08:04:09 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-01-15 08:04:09 -0800 |
commit | 42159354b4ee6145fe3fa9e169af48380c6134e0 (patch) | |
tree | 761c98c7a807d12d2c3ff6be90709ed7d00c16f6 /railties/lib | |
parent | dee595ce04b65d27294912faff146ed402ded6d1 (diff) | |
parent | 666f9316ebaa13d594c6b66e095096c52d82e3f1 (diff) | |
download | rails-42159354b4ee6145fe3fa9e169af48380c6134e0.tar.gz rails-42159354b4ee6145fe3fa9e169af48380c6134e0.tar.bz2 rails-42159354b4ee6145fe3fa9e169af48380c6134e0.zip |
Merge pull request #4474 from guilleiguaran/fix-route-inspector-3-2-stable
Don't hardcode assets route skipped in route inspector (3-2-stable)
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/application/route_inspector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/route_inspector.rb b/railties/lib/rails/application/route_inspector.rb index 3e08b78221..01cde0a6e7 100644 --- a/railties/lib/rails/application/route_inspector.rb +++ b/railties/lib/rails/application/route_inspector.rb @@ -42,7 +42,7 @@ module Rails end # Skip the route if it's internal info route - routes.reject { |r| r[:path] =~ %r{/rails/info/properties|^/assets} } + routes.reject { |r| r[:path] =~ %r{/rails/info/properties|^#{Rails.application.config.assets.prefix}} } end def collect_engine_routes(name, rack_app) |