Skip to content

Commit

Permalink
feature: make AuthService#access_id as public meth
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendi committed Dec 16, 2015
1 parent ab432ed commit d5d46a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/apress/api/auth_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def call
::ApiAuth.authentic?(request, client.secret_token)
end

private

def access_id
@access_id ||= ApiAuth.access_id(request) || query_parameters[:access_id]
end

private

def not_check_signature?
check_signature = query_parameters[:check_signature]
check_signature.present? && check_signature.to_i.zero? && (Rails.env.staging? || !Rails.env.production?)
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require "simplecov"
SimpleCov.start "rails" do
minimum_coverage 95
add_filter "/lib/apress/api/testing/"
end

require "pry-debugger"
Expand Down

0 comments on commit d5d46a6

Please sign in to comment.