class PgSearch::Configuration

def assert_valid_options(options)

def assert_valid_options(options)
  unless options[:against] || options[:associated_against] || using_tsvector_column?(options[:using])
    raise(
      ArgumentError,
      "the search scope #{@name} must have :against, :associated_against, or :tsvector_column in its options"
    )
  end
  options.assert_valid_keys(VALID_KEYS)
  VALID_VALUES.each do |key, values_for_key|
    Array(options[key]).each do |value|
      raise ArgumentError, ":#{key} cannot accept #{value}" unless values_for_key.include?(value)
    end
  end
end