#193 new
Jason Kusar

Sunspot::Rails search_ids fails for UUIDs

Reported by Jason Kusar | November 21st, 2011 @ 05:30 PM

When using models with UUIDs as primary keys, Searchable#search_ids fails as it calls to_i on the id that comes back. Since AR is perfectly capable of handling ids passed in as strings (such as what comes from params), it shouldn't break too much to leave them as strings to accommodate when people want to use UUIDs.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Awesome Solr interaction for Ruby

People watching this ticket