Merge branch 'cache/harvests' of github.com:Br3nda/growstuff into cache/harvests

This commit is contained in:
Brenda Wallace
2019-12-19 21:49:37 +13:00

View File

@@ -18,10 +18,10 @@ class HarvestsController < ApplicationController
where['planting_id'] = @planting.id if @planting.present?
@harvests = Harvest.search('*',
where: where,
limit: 100,
page: params[:page],
load: false,
where: where,
limit: 100,
page: params[:page],
load: false,
boost_by: [:created_at])
@filename = csv_filename