Sha256: 6f85adda13b609cf05f038fbd29f7c422ec60d7f8879f4b765f31d986771e259

Contents?: true

Size: 438 Bytes

Versions: 43

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

module Motor
  class UiController < ApplicationController
    layout 'motor/application'

    helper_method :current_user, :current_ability

    def index
      render_ui
    end

    def new
      render_ui
    end

    def show
      render_ui
    end

    private

    def render_ui
      Motor.reload! if Motor.development?

      Motor::Configs::SyncFromFile.call

      render :show
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
motor-admin-0.1.104 app/controllers/motor/ui_controller.rb
motor-admin-0.1.103 app/controllers/motor/ui_controller.rb
motor-admin-0.1.102 app/controllers/motor/ui_controller.rb
motor-admin-0.1.101 app/controllers/motor/ui_controller.rb
motor-admin-0.1.100 app/controllers/motor/ui_controller.rb
motor-admin-0.1.99 app/controllers/motor/ui_controller.rb
motor-admin-0.1.98 app/controllers/motor/ui_controller.rb
motor-admin-0.1.97 app/controllers/motor/ui_controller.rb
motor-admin-0.1.96 app/controllers/motor/ui_controller.rb
motor-admin-0.1.93 app/controllers/motor/ui_controller.rb
motor-admin-0.1.92 app/controllers/motor/ui_controller.rb
motor-admin-0.1.91 app/controllers/motor/ui_controller.rb
motor-admin-0.1.90 app/controllers/motor/ui_controller.rb
motor-admin-0.1.89 app/controllers/motor/ui_controller.rb
motor-admin-0.1.88 app/controllers/motor/ui_controller.rb
motor-admin-0.1.87 app/controllers/motor/ui_controller.rb
motor-admin-0.1.86 app/controllers/motor/ui_controller.rb
motor-admin-0.1.85 app/controllers/motor/ui_controller.rb
motor-admin-0.1.84 app/controllers/motor/ui_controller.rb
motor-admin-0.1.83 app/controllers/motor/ui_controller.rb