Check
Check a controller file to make sure finder is simple.
Complex finder in controller is a code smell, use namd_scope instead.
Implementation: check method :find, :all, :first, :last with hash parameters.
# File lib/rails_best_practices/checks/move_finder_to_named_scope_check.rb, line 22 def evaluate_start(node) add_error "move finder to named_scope" if finder?(node) end
Generated with the Darkfish Rdoc Generator 2.