class RuboCop::Cop::Rails::DynamicFindBy

def allowed_method?(node)

def allowed_method?(node)
  return false unless cop_config['AllowedMethods']
  cop_config['AllowedMethods'].include?(node.method_name.to_s)
end