Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Apply on scope #38

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

chrilleferna
Copy link

Fuzzy search applicable to scope, example:

Person.where('country = ?', "France").find_by_fuzzy_name(the_name, :limit => 20)

Updates of fuzzily searchable objects cause Rails exceptions due to mass assignment of attributes from fuzzily
Fix 1: don't crash if applied to scope (but limit won't be accurate)
Fix 2: take into account limit parameter
@Swizec Swizec mentioned this pull request Feb 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant