Check
Check a view file to make sure there is no finder.
Implementation: Check if view file contains finder, then the code should move to controller.
# File lib/rails_best_practices/checks/move_code_into_controller_check.rb, line 20 def evaluate_start(node) add_error "move code into controller" if finder?(node) end
Generated with the Darkfish Rdoc Generator 2.