From 11c71b207e11e6a94b65f5e480845ecc3a06de0d Mon Sep 17 00:00:00 2001 From: Jorge Bejar Date: Tue, 5 May 2015 17:18:17 -0300 Subject: Revert changes related with api apps in RouteWrapper See the following commit to have context about this change: https://github.com/rails/rails/commit/757a2bc3e3e52a5d9418656928db993db42b741b --- actionpack/lib/action_dispatch/routing/inspector.rb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'actionpack/lib/action_dispatch/routing') diff --git a/actionpack/lib/action_dispatch/routing/inspector.rb b/actionpack/lib/action_dispatch/routing/inspector.rb index aa507f59c7..48c10a7d4c 100644 --- a/actionpack/lib/action_dispatch/routing/inspector.rb +++ b/actionpack/lib/action_dispatch/routing/inspector.rb @@ -45,22 +45,12 @@ module ActionDispatch end def internal? - internal_controller? || internal_asset? + controller.to_s =~ %r{\Arails/(info|mailers|welcome)} end def engine? rack_app.respond_to?(:routes) end - - private - def internal_controller? - controller.to_s =~ %r{\arails/(info|mailers|welcome)} - end - - def internal_asset? - Rails.application.config.respond_to?(:assets) && - path =~ %r{\a#{Rails.application.config.assets.prefix}\z} - end end ## -- cgit v1.2.3