Commit defa79afebb5c07ac5a8d4e33b09ffd45f7e29af

Authored by Leandro Santos
Committed by Rodrigo Souto
1 parent 0d916f0e

adding log to api

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
lib/api/helpers.rb
... ... @@ -2,6 +2,10 @@ module API
2 2 module APIHelpers
3 3 PRIVATE_TOKEN_PARAM = :private_token
4 4  
  5 + def logger
  6 + API.logger
  7 + end
  8 +
5 9 def current_user
6 10 private_token = params[PRIVATE_TOKEN_PARAM].to_s
7 11 @current_user ||= User.find_by_private_token(private_token)
... ...