switch to class methods and ids to shorten the payload size of serialized delayed_jobs

This commit is contained in:
Andrew Cantino 2013-03-23 15:12:39 -07:00
parent 15b03fc40c
commit eead335705
5 changed files with 104 additions and 89 deletions

View file

@ -9,8 +9,7 @@ class AgentsController < ApplicationController
end
def run
@agent = current_user.agents.find(params[:id])
@agent.async_check
Agent.async_check(current_user.agents.find(params[:id]).id)
redirect_to agents_path, notice: "Agent run queued"
end