From 779cdb61739e599ef39ab82b67c399a7d1341a7f Mon Sep 17 00:00:00 2001 From: Dan Elbert Date: Wed, 28 Sep 2016 14:12:09 -0500 Subject: [PATCH] increased usda search max results --- app/controllers/ingredients_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ingredients_controller.rb b/app/controllers/ingredients_controller.rb index c0b51d8..0212da6 100644 --- a/app/controllers/ingredients_controller.rb +++ b/app/controllers/ingredients_controller.rb @@ -111,7 +111,7 @@ class IngredientsController < ApplicationController end def usda_food_search - @foods = UsdaFood.search(params[:query]).limit(50).order(:long_description) + @foods = UsdaFood.search(params[:query]).limit(250).order(:long_description) respond_to do |format| format.html { render :layout => false }