Sha256: 0ce4304033c2552b1aab213b379157c6be364884db7b0fbab1499715391b8a2b

Contents?: true

Size: 357 Bytes

Versions: 5

Compression:

Stored size: 357 Bytes

Contents

module Admin
  class BaseController < ActionController::Base
    include LoadSettings

    protect_from_forgery
    before_action :authenticate_admin_user!, except: %w(index)
    before_action :load_settings, only: %w(index)

    def index
      render '/admin/index', layout: 'admin'
    end

    def bootstrap_data
      render json: {}
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
venice-chr-0.1.5 app/controllers/admin/base_controller.rb
venice-chr-0.1.4 app/controllers/admin/base_controller.rb
venice-chr-0.1.3 app/controllers/admin/base_controller.rb
venice-chr-0.1.2 app/controllers/admin/base_controller.rb
venice-chr-0.1.1 app/controllers/admin/base_controller.rb