fix search deleting crops

This commit is contained in:
Taylor Griffin committed 2015-02-10 19:58:43 +11:00
1 parent c61f7b8e72
commit 623dbdd418
1 file changed
+1 -1
+1 -1
View File
@@ -315,7 +315,7 @@ class Crop < ActiveRecord::Base
)
return response.records.to_a
else
where("name ILIKE ?", "%#{query}%")
where("name ILIKE ?", "%#{query}%").load
end
end