aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorre4k <re4k@re4k.info>2013-05-04 18:33:26 +0900
committerre4k <re4k@re4k.info>2013-05-04 18:33:26 +0900
commitab1c68b6957649401d985944114a55c1c4828e17 (patch)
tree9fecf5dd7aff98758ee041e7859133cf0575bf54 /app/controllers/application_controller.rb
parent28a7580a628a1519ab40baeee2cd74315f5640ca (diff)
downloadaclog-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.rb2
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