Class: Kanaui::SettingsController

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

Instance Method Summary collapse

Methods inherited from EngineController

#as_string, #as_string_from_response, #current_tenant_user, #get_layout, #log_rescue_error, #options_for_klient

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