Sign in

EDIT / kanjai · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • kanjai
  • app
  • controllers
  • kanjai
  • admin_controller.rb
  • add new design
    0a3000a4
    Karpikau Andrei authored
    2020-04-09 13:41:15 +0300  
    Browse Files »
admin_controller.rb 402 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
require 'unobtrusive_flash'

module Kanjai
  class AdminController < ApplicationController
    include UnobtrusiveFlash::ControllerMixin

    helper :all

    layout 'kanjai/admin'

    protect_from_forgery

    before_action :authenticate_admin_user!
    before_action :set_locale

    after_action :prepare_unobtrusive_flash

    private

    def set_locale
      I18n.locale = :en
    end

  end
end