routes_without_actions: Consider all public instance methods

This commit is contained in:
Rob Watson 2018-01-18 19:31:35 +00:00
parent 716d9117bb
commit be0036d747
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ module RoutingReport
# actions in a superclass: # actions in a superclass:
matching_controllers = controller.ancestors.select { |c| c < base_class } matching_controllers = controller.ancestors.select { |c| c < base_class }
unless matching_controllers.any? { |c| c.public_instance_methods(false).include?(action_name.to_sym) } unless matching_controllers.any? { |c| c.public_instance_methods.include?(action_name.to_sym) }
accum << "#{controller_name}##{action_name}" accum << "#{controller_name}##{action_name}"
end end
end end