Don't reference sprockets assets on action pack

We need to ignore the `assets_prefix` when running a command like `rake
routes`. However we cannot reference asserts_prefix from action_pack as
that is a sprockets-rails concern.
See this is now implemented on sprockets-rails
85b89c44ad
This commit is contained in:
Arthur Neves 2015-04-26 11:23:08 -04:00
parent 66fe53118f
commit 757a2bc3e3
No known key found for this signature in database
GPG Key ID: 04A390FB1E433E17
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ module ActionDispatch
end
def internal?
controller.to_s =~ %r{\Arails/(info|mailers|welcome)} || path =~ %r{\A#{Rails.application.config.assets.prefix}\z}
controller.to_s =~ %r{\Arails/(info|mailers|welcome)}
end
def engine?