Check
Check a controller to make sure using scope access
Implementation: simply check if or unless compare with current_user or current_user.id and there is a redirect_to message in if or unless block
# File lib/rails_best_practices/checks/use_scope_access_check.rb, line 18 def evaluate_start(node) add_error "use scope access" if current_user_redirect?(node) end
Generated with the Darkfish Rdoc Generator 2.