fix variable name

This commit is contained in:
Nihad Abbasov 2013-10-16 22:28:39 +05:00
parent e9142c6f2c
commit e09cc195a7

View file

@ -16,7 +16,7 @@ module API
rescue => ex
not_found!("No user id or username for: #{identifier}")
end
not_found!("No user id or username for: #{identifier}") if current_user.nil?
not_found!("No user id or username for: #{identifier}") if @current_user.nil?
end
@current_user
end