MS SM fix for 'No method limit for []'

This commit is contained in:
Maxwell Salzberg 2011-09-03 16:05:44 -07:00
parent 26151263c5
commit 1853720513

View file

@ -94,7 +94,7 @@ class Person < ActiveRecord::Base
end
def self.search(query, user)
return [] if query.to_s.blank? || query.to_s.length < 2
return self.where("1 = 0") if query.to_s.blank? || query.to_s.length < 2
sql, tokens = self.search_query_string(query)