mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-02 13:41:00 -05:00
fix search deleting crops
This commit is contained in:
@@ -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