Check
Check config/routes.rb to make sure there are no much route customizations.
Implementation: check member and collection route count, if more than customize_count, then it is overuse route customizations.
# File lib/rails_best_practices/checks/overuse_route_customizations_check.rb, line 23 def evaluate_start(node) if :resources == node.message add_error "overuse route customizations (customize_count > #{@customize_count})" if member_and_collection_count(node) > @customize_count end end
Generated with the Darkfish Rdoc Generator 2.