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

Commit

Permalink
Fixes Ruby 1.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mezis committed Aug 30, 2013
1 parent 2fcfa2a commit 46322b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fuzzily/searchable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def make_field_fuzzily_searchable(field, options={})

trigram_class.transaction do
batch.each { |record| record.send(trigram_association).delete_all }
return if inserts.empty?
break if inserts.empty?

if supports_bulk_inserts
trigram_class.connection.insert(insert_sql + inserts.join(", "))
else
Expand Down

0 comments on commit 46322b2

Please sign in to comment.