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:57 +03:00
parent e9cf8f7900
commit 2e98e0f163
2 changed files with 2 additions and 6 deletions

View file

@ -1,13 +1,9 @@
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