mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-07-24 05:38:50 +00:00
switch to class methods and ids to shorten the payload size of serialized delayed_jobs
This commit is contained in:
parent
15b03fc40c
commit
eead335705
5 changed files with 104 additions and 89 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue