mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-09-23 06:24:57 -04:00
fix search deleting crops
This commit is contained in:
1 parent
c61f7b8e72
commit
623dbdd418
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user