Commit 6705a183e40e057ed44ad0bc880f0515ba8ce106

Authored by Leandro Santos
1 parent 313fce66

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)
... ...