Story#116761157 - "ok" state of Contact is not always set and is dynamic

This commit is contained in:
Vladimir Krylov 2016-05-30 14:45:24 +03:00
parent d1e5312b98
commit e9cf8f7900
3 changed files with 10 additions and 5 deletions

View file

@ -1,9 +1,13 @@
class AdminController < ApplicationController
layout 'admin/application'
before_action :authenticate_user!
# before_action :authenticate_user!
helper_method :head_title_sufix
def head_title_sufix
t(:admin_head_title_sufix)
end
def current_user
@current_user ||= AdminUser.find_by(username: :timo)
end
end