Sha256: 305475e3966e05c962b45b4791d705c49cfb75df8950b1e56c37a55e80191d34

Contents?: true

Size: 409 Bytes

Versions: 9

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

module Kanaui
  class SettingsController < Kanaui::EngineController
    def index; end

    # update would have been nicer, but it's hard to pass the id in the url
    def create
      Kanaui::DashboardHelper::DashboardApi.refresh(params.require(:account_id), options_for_klient)
      redirect_to({ action: :index }, notice: 'Account successfully refreshed')
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kanaui-4.0.3 app/controllers/kanaui/settings_controller.rb
kanaui-4.0.2 app/controllers/kanaui/settings_controller.rb
kanaui-4.0.1 app/controllers/kanaui/settings_controller.rb
kanaui-2.2.1 app/controllers/kanaui/settings_controller.rb
kanaui-4.0.0 app/controllers/kanaui/settings_controller.rb
kanaui-2.1.3 app/controllers/kanaui/settings_controller.rb
kanaui-2.1.2 app/controllers/kanaui/settings_controller.rb
kanaui-2.1.1 app/controllers/kanaui/settings_controller.rb
kanaui-2.1.0 app/controllers/kanaui/settings_controller.rb