ref: master
plugins/send_email/controllers/send_email_plugin_admin_controller.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
class SendEmailPluginAdminController < PluginsController def index @environment = environment if request.post? if environment.update(params[:environment]) session[:notice] = _('Configurations was saved') redirect_to :controller => 'plugins' else session[:notice] = _('Configurations could not be saved') end end end end |