class RuboCop::Cop::Rails::SelectMap

def match_column_name?(select_candidate, column_name)

def match_column_name?(select_candidate, column_name)
  return false unless select_candidate.arguments.one?
  return false unless (first_argument = select_candidate.first_argument)
  argument = case select_candidate.first_argument.type
             when :sym
               first_argument.source.delete_prefix(':')
             when :str
               first_argument.value if first_argument.respond_to?(:value)
             end
  argument == column_name
end