MS SM fix for 'No method limit for []'
This commit is contained in:
parent
26151263c5
commit
1853720513
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ class Person < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.search(query, user)
|
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)
|
sql, tokens = self.search_query_string(query)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue