diff --git a/lib/api_taster/route.rb b/lib/api_taster/route.rb index 0ec0a5e..e36c0ab 100644 --- a/lib/api_taster/route.rb +++ b/lib/api_taster/route.rb @@ -37,6 +37,7 @@ def normalise_routes! route_set.routes.each do |route| next if route.app.is_a?(Sprockets::Environment) next if route.app == ApiTaster::Engine + next if route.defaults[:controller].to_s.starts_with?('rails/') rack_app = discover_rack_app(route.app) diff --git a/spec/route_spec.rb b/spec/route_spec.rb index 41747d2..d376568 100644 --- a/spec/route_spec.rb +++ b/spec/route_spec.rb @@ -32,6 +32,9 @@ module ApiTaster end mount Rails.application => '/app' mount proc {} => '/rack_app' + + get 'rails/info/properties' => 'rails/info#properties', :as => :rails_info_properties + get '/' => 'rails/welcome#index' end Rails.application.stub(:routes).and_return(routes)