mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
integrate @knu's suggestions
This commit is contained in:
parent
ce84f159e0
commit
8713dce4d8
1 changed files with 3 additions and 1 deletions
|
@ -239,6 +239,8 @@ class AgentsController < ApplicationController
|
|||
when "show"
|
||||
if @agent && !@agent.destroyed?
|
||||
path = agent_path(@agent)
|
||||
else
|
||||
path = agents_path
|
||||
end
|
||||
when /\A#{Regexp::escape scenarios_path}\/\d+\z/, agents_path
|
||||
path = ret
|
||||
|
@ -247,7 +249,7 @@ class AgentsController < ApplicationController
|
|||
if path
|
||||
redirect_to path, notice: message
|
||||
else
|
||||
redirect_to agents_path, notice: message
|
||||
super agents_path, notice: message
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue