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
  • check some point
    5582cf37
    Karpikau Andrei authored
    2016-05-19 13:00:44 +0300  
    Browse Files »
admin_controller.rb 281 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
module Kanjai
  class AdminController < ApplicationController
    unloadable

    layout 'kanjai/admin'

    protect_from_forgery

    before_filter :authenticate_admin_user!

    before_filter :set_locale

    private

    def set_locale
      I18n.locale = :en
    end

  end
end