Use BaseController in admin

This commit is contained in:
Artur Beljajev 2017-08-22 01:17:50 +03:00
parent cee4c84edd
commit a63b989cd6
36 changed files with 1265 additions and 1215 deletions

View file

@ -0,0 +1,10 @@
module Admin
class BaseController < ApplicationController
before_action :authenticate_user!
helper_method :head_title_sufix
def head_title_sufix
t(:admin_head_title_sufix)
end
end
end