return to plugin edit page when plugin is saved

This commit is contained in:
Lee Lawlor
2014-11-12 14:17:25 -05:00
parent 494c6affec
commit 20b88b8b42
3 changed files with 11 additions and 8 deletions

View File

@ -142,7 +142,8 @@ class PluginsController < ApplicationController
if @plugin.save
@plugin.update_all_windows
redirect_to plugins_path and return
flash[:notice] = I18n.t(:plugin_save_message)
redirect_to edit_plugin_path(@plugin) and return
end
end