Overriding Model filters

12 views
Skip to first unread message

Albert Horatius

unread,
Dec 17, 2018, 6:13:05 AM12/17/18
to rails_admin
Hello,
How can I override is_exactly filter to use my database index, 
is_exactly filter is using this query:
"SELECT  "users".* FROM "users" WHERE ((users.username ILIKE 'balbla'));
is there any possible way to change this query to be:
"SELECT  "users".* FROM "users" WHERE ((lower(users.username) ILIKE 'balbla'));

if not, how can I add a custom filter to execute this query?
thank you


Ricardo Paiva

unread,
Mar 28, 2019, 9:31:29 PM3/28/19
to rails_admin
Hi Albert, did you managed to do this ?
Reply all
Reply to author
Forward
0 new messages