Class: A::MdwaContatoConfiguracaoController

Inherits:
BackendController
  • Object
show all
Defined in:
app/controllers/a/mdwa_contato_configuracao_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
# File 'app/controllers/a/mdwa_contato_configuracao_controller.rb', line 6

def index
end

#salvarObject



9
10
11
12
13
14
15
16
17
18
19
# File 'app/controllers/a/mdwa_contato_configuracao_controller.rb', line 9

def salvar

  Settings['MDWA_CONTATO.email_administrador']   = params[:email_administrador]
  Settings['MDWA_CONTATO.nome_site']             = params[:nome_site]
  Settings['MDWA_CONTATO.url_site']            = params[:url_site]
  Settings['MDWA_CONTATO.assinatura_email']      = params[:assinatura_email]

  respond_to do |format|
    format.html {redirect_to a_mdwa_contato_configuracao_index_path, notice: t('mdwa_contato.configuracao.salvar_notice')}
  end
end