Class: Kanaui::SettingsController

Inherits:
EngineController
  • Object
show all
Defined in:
app/controllers/kanaui/settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject

update would have been nicer, but it's hard to pass the id in the url



8
9
10
11
# File 'app/controllers/kanaui/settings_controller.rb', line 8

def create
  Kanaui::DashboardHelper::DashboardApi.refresh(params.require(:account_id), options_for_klient)
  redirect_to({ action: :index }, notice: 'Account successfully refreshed')
end

#indexObject



5
# File 'app/controllers/kanaui/settings_controller.rb', line 5

def index; end