Make active record autocompletes support Procs for where