Skip to content

Commit

Permalink
Merge pull request #7 from daveallie/ghiculescu-patch-1
Browse files Browse the repository at this point in the history
Support controller_paths that are nil
  • Loading branch information
ghiculescu authored Dec 15, 2020
2 parents 0a5c4b1 + 15c5250 commit bcfb798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails-route-checker/loaded_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def all_route_names

def controller_information
@controller_information ||= ActionController::Base.descendants.map do |controller|
next if controller.controller_path.start_with?('rails/')
next if controller.controller_path.nil? || controller.controller_path.start_with?('rails/')

[
controller.controller_path,
Expand Down

0 comments on commit bcfb798

Please sign in to comment.