diff options
Diffstat (limited to 'app/controllers/admin/hooks_controller.rb')
-rw-r--r-- | app/controllers/admin/hooks_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/admin/hooks_controller.rb b/app/controllers/admin/hooks_controller.rb index d0abdec50ae..1100bf8c9f6 100644 --- a/app/controllers/admin/hooks_controller.rb +++ b/app/controllers/admin/hooks_controller.rb @@ -14,7 +14,7 @@ class Admin::HooksController < Admin::ApplicationController @hook = SystemHook.new(hook_params.to_h) if @hook.save - redirect_to admin_hooks_path, notice: 'Hook was successfully created.' + redirect_to admin_hooks_path, notice: "Hook was successfully created." else @hooks = SystemHook.all render :index @@ -26,10 +26,10 @@ class Admin::HooksController < Admin::ApplicationController def update if hook.update(hook_params) - flash[:notice] = 'System hook was successfully updated.' + flash[:notice] = "System hook was successfully updated." redirect_to admin_hooks_path else - render 'edit' + render "edit" end end |