admin_controller.rb
402 Bytes
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