return to plugin edit page when plugin is saved

This commit is contained in:
Lee Lawlor committed 2014-11-12 14:17:25 -05:00
1 parent 494c6affec
commit 20b88b8b42
3 files changed
+11 -8

No files matched your search

+2 -1
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