-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Great gem, @mrkamel!
One small thing: Support for PostgreSQL enums would be great. Currently, it fails with a NameError. Example:
CREATE TYPE public.person_gender AS ENUM (
'male',
'female'
);
CREATE TABLE public.people (
id bigint NOT NULL,
name character varying,
gender public.person_gender
);class Person < ApplicationRecord
include SearchCop
enum gender: {
male: 'male',
female: 'female'
}
search_scope :search do
attributes :gender, :name
end
end
Person.search("gender:male")
=> NameError: Uninitialized constant SearchCopGrammar::Attributes::EnumReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels