class RailsBestPractices::Reviews::SimplifyRenderInViewsReview

if there is a key ‘partial’ in the argument, then they should be replaced by simplified syntax.
check all render method commands in view files,
Review process:
Implementation:
See the best practice details here rails-bestpractices.com/posts/2010/12/04/simplify-render-in-views/
Review a view file to make sure using simplified syntax for render.

def include_partial?(hash_node)

def include_partial?(hash_node)
  hash_node.hash_keys.include?('partial') && !hash_node.hash_value('partial').to_s.include?('/')
end

def valid_hash?(hash_node)

def valid_hash?(hash_node)
  keys = hash_node.hash_keys
  keys.delete('partial')
  (keys - VALID_KEYS).empty?
end