diff options
author | re4k <re4k@re4k.info> | 2013-05-04 18:33:26 +0900 |
---|---|---|
committer | re4k <re4k@re4k.info> | 2013-05-04 18:33:26 +0900 |
commit | ab1c68b6957649401d985944114a55c1c4828e17 (patch) | |
tree | 9fecf5dd7aff98758ee041e7859133cf0575bf54 /app/controllers/application_controller.rb | |
parent | 28a7580a628a1519ab40baeee2cd74315f5640ca (diff) | |
download | aclog-ab1c68b6957649401d985944114a55c1c4828e17.tar.gz |
fix a problem: can't request /api/tweets/best,timeline,.. with user_id parameter
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0a8217a..912bbdd 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base protected def _get_user(id, screen_name) if id - User.find(id: id) rescue raise Aclog::Exceptions::UserNotFound + User.find(id) rescue raise Aclog::Exceptions::UserNotFound elsif screen_name User.find_by(screen_name: screen_name) || (raise Aclog::Exceptions::UserNotFound) end |