1-second timeout on bulk modeling
This commit is contained in:
parent
eb665f10a4
commit
169c587e42
1 changed files with 5 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue