diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-04-24 16:44:12 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2019-04-24 16:44:12 +0300 |
commit | 163730f0a2c8f7266cc9521bfd326b351688c48c (patch) | |
tree | b1626706cbdff720cbae2d2344495e2aacfb5b3b /app/controllers | |
parent | a89e8149b686c37962612779b0d245e7a90e59a8 (diff) |
Redirect to settings page on invalid update
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/settings/ci_cd_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/settings/ci_cd_controller.rb b/app/controllers/projects/settings/ci_cd_controller.rb index d1c5cef76fa..c4dff95a4b9 100644 --- a/app/controllers/projects/settings/ci_cd_controller.rb +++ b/app/controllers/projects/settings/ci_cd_controller.rb @@ -19,7 +19,7 @@ module Projects redirect_to project_settings_ci_cd_path(@project) else - render 'show' + redirect_to project_settings_ci_cd_path(@project), alert: result[:message] end end end |