amatsuda / traceroute

A Rake task gem that helps you find the unused routes and controller actions for your Rails 3+ app
MIT License
903 stars 38 forks source link

Ignore abstract controllers #48

Open vlad-pisanov opened 1 year ago

vlad-pisanov commented 1 year ago

It would be nice if traceroute ignored controllers marked as abstract!. Such controllers serve as base classes and aren't meant to be reachable.

class BaseController < ApplicationController
   abstract!
   def index; end # non-reachable
end

class ActualController < BaseController
   def index; end # possibly reachable
end