Skip to content

Commit

Permalink
fix(client): namespace Apress::Api for model Client
Browse files Browse the repository at this point in the history
  • Loading branch information
JSinx committed May 25, 2017
1 parent 798cdc3 commit ef793b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/apress/api/v1/tokens_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class TokensController < ApiController::Base
skip_before_filter :authenticate, only: :create

def create
@client = Client.find_by_access_id!(params.require(:client_id))
@client = Apress::Api::Client.find_by_access_id!(params.require(:client_id))

return bad_request if @client.refresh_token != params.require(:refresh_token)
return forbidden if @client.refresh_token_expired?
Expand Down
2 changes: 1 addition & 1 deletion app/services/apress/api/auth_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AuthService
#
# Returns boolean
def call
@client = Client.find_by_access_id(access_id)
@client = Apress::Api::Client.find_by_access_id(access_id)
return false unless client

return false if client.secret_token_expired?
Expand Down
2 changes: 1 addition & 1 deletion lib/apress/api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Apress
module Api
VERSION = '1.12.0'
VERSION = '1.12.1'
end
end

0 comments on commit ef793b8

Please sign in to comment.