aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorre4k <re4k@re4k.info>2013-05-01 00:44:49 +0900
committerre4k <re4k@re4k.info>2013-05-01 00:44:49 +0900
commitbcf546c1f5fc305a1b75dfa091630c68668cd590 (patch)
treebd6a3754a3a5b428a4da6de213691955055c2536 /app/controllers/application_controller.rb
parent84a132e63ea44819ba60b09ed6585ac4c7b52f5b (diff)
downloadaclog-bcf546c1f5fc305a1b75dfa091630c68668cd590.tar.gz
fix small problems
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 2c73623..66534fa 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -6,7 +6,7 @@ class ApplicationController < ActionController::Base
def _get_user(id, screen_name)
if id
- User.find_by(id: id.to_i)
+ User.find_by(id: id)
elsif screen_name
User.find_by(screen_name: screen_name)
end