aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRyunosuke SATO <tricknotes.rs@gmail.com>2013-12-07 01:32:25 +0900
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-19 09:51:17 -0200
commitd54bc032c90517fc1e57db9fca75e3297acc86fb (patch)
treec1d1a39231ba43cce2ee133b2d81ecc4e8714916 /actionpack/lib
parentc5b76b5362e4ba28ff3a5649156c50dff9a86de7 (diff)
downloadrails-d54bc032c90517fc1e57db9fca75e3297acc86fb.tar.gz
rails-d54bc032c90517fc1e57db9fca75e3297acc86fb.tar.bz2
rails-d54bc032c90517fc1e57db9fca75e3297acc86fb.zip
Show routes defined under assets prefix
Closes #9625
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/routing/inspector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/inspector.rb b/actionpack/lib/action_dispatch/routing/inspector.rb
index 03ac42285d..f612e91aef 100644
--- a/actionpack/lib/action_dispatch/routing/inspector.rb
+++ b/actionpack/lib/action_dispatch/routing/inspector.rb
@@ -69,7 +69,7 @@ module ActionDispatch
end
def internal?
- controller.to_s =~ %r{\Arails/(info|mailers|welcome)} || path =~ %r{\A#{Rails.application.config.assets.prefix}}
+ controller.to_s =~ %r{\Arails/(info|mailers|welcome)} || path =~ %r{\A#{Rails.application.config.assets.prefix}\z}
end
def engine?