mirror of https://github.com/rails/rails
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:
parent
66fe53118f
commit
757a2bc3e3
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue