1-second timeout on bulk modeling

This commit is contained in:
Emi Matchu 2015-07-07 12:27:13 -04:00
parent eb665f10a4
commit 169c587e42

View file

@ -13,7 +13,11 @@ class PetsController < ApplicationController
redirect_to roulette_path
else
raise Pet::PetNotFound unless params[:name]
@pet = Pet.load(params[:name], :item_scope => Item.includes(:translations))
@pet = Pet.load(
params[:name],
:item_scope => Item.includes(:translations),
:timeout => 1
)
points = contribute(current_user, @pet)
respond_to do |format|