Class: Admin::MailSettingsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/admin/mail_settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



3
4
5
6
7
8
9
10
11
12
# File 'app/controllers/admin/mail_settings_controller.rb', line 3

def update
  Spree::Config.set(params[:preferences])
  Spree::Preferences::MailSettings.init

  respond_to do |format|
    format.html {
      redirect_to admin_mail_settings_path
    }
  end
end