Class: Kanaui::SettingsController
- Inherits:
-
EngineController
- Object
- ApplicationController
- EngineController
- Kanaui::SettingsController
- Defined in:
- app/controllers/kanaui/settings_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
update would have been nicer, but it’s hard to pass the id in the url.
- #index ⇒ Object
Methods inherited from EngineController
#as_string, #as_string_from_response, #current_tenant_user, #get_layout, #log_rescue_error, #options_for_klient
Instance Method Details
#create ⇒ Object
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), ) redirect_to({ action: :index }, notice: 'Account successfully refreshed') end |
#index ⇒ Object
5 |
# File 'app/controllers/kanaui/settings_controller.rb', line 5 def index; end |