diff options
author | Rhenium <rhenium@rhe.jp> | 2013-08-09 09:59:54 +0900 |
---|---|---|
committer | Rhenium <rhenium@rhe.jp> | 2013-08-09 09:59:54 +0900 |
commit | c2f7f280e3b45955c99ed37b6b6b929b4acc2ea4 (patch) | |
tree | 9dec2e3dcc00423cbfbfa14577699e9afef155b6 /app/controllers/application_controller.rb | |
parent | 32ae467d2960438292fd59920a90d706aa4d66cd (diff) | |
download | aclog-c2f7f280e3b45955c99ed37b6b6b929b4acc2ea4.tar.gz |
fix autoloading
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 4b78b9e..819ef93 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -5,9 +5,11 @@ class ApplicationController < ActionController::Base protect_from_forgery before_filter :check_format, :check_session after_filter :xhtml - helper_method :authorized_to_show_user?, :authorized_to_show_best? + helper_method :logged_in?, :authorized_to_show_user?, :authorized_to_show_best? protected + def logged_in?; session[:user_id] && session[:account] end + def _get_user(id, screen_name) if id User.find(id) rescue raise Aclog::Exceptions::UserNotFound |