Check
Check a controller to make sure adding a model virual attribute to simplify model creation.
Implementation: check arguments of params#[]= before calling save, if they have duplicated arguments, then the model may need to add a model virtual attribute.
# File lib/rails_best_practices/checks/add_model_virtual_attribute_check.rb, line 19 def evaluate_start(node) @variables = {} node.recursive_children do |child| case child.node_type when :attrasgn attribute_assignment(child) when :call call_assignment(child) else end end @variables = nil end
Generated with the Darkfish Rdoc Generator 2.