Sha256: 3334b75e06b0815de3ad91fb111cc7c39daa86f7f4c815d9f31fbcdc0f0c6b7a

Contents?: true

Size: 420 Bytes

Versions: 8

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

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

    helper_method :current_user

    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

8 entries across 8 versions & 1 rubygems

Version Path
motor-admin-0.1.57 app/controllers/motor/ui_controller.rb
motor-admin-0.1.56 app/controllers/motor/ui_controller.rb
motor-admin-0.1.55 app/controllers/motor/ui_controller.rb
motor-admin-0.1.54 app/controllers/motor/ui_controller.rb
motor-admin-0.1.53 app/controllers/motor/ui_controller.rb
motor-admin-0.1.52 app/controllers/motor/ui_controller.rb
motor-admin-0.1.51 app/controllers/motor/ui_controller.rb
motor-admin-0.1.50 app/controllers/motor/ui_controller.rb