Skip to content

Commit

Permalink
Fix and force a missing include of exception on Param Auth Header cla…
Browse files Browse the repository at this point in the history
…ss. This is available on request classes but but here (#168)

* Fix and force a missing include of exception on Param Auth Header class. This is available on request classes but but here

* Instead of include, use full path
  • Loading branch information
vipulnsward authored May 5, 2024
1 parent a04aafa commit 71c119d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/uploadcare/param/authentication_header.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def self.call(options = {})
end

def self.validate_auth_config
raise AuthError, 'Public Key is blank.' if is_blank?(Uploadcare.config.public_key)
raise AuthError, 'Secret Key is blank.' if is_blank?(Uploadcare.config.secret_key)
raise Uploadcare::Exception::AuthError, 'Public Key is blank.' if is_blank?(Uploadcare.config.public_key)
raise Uploadcare::Exception::AuthError, 'Secret Key is blank.' if is_blank?(Uploadcare.config.secret_key)
end

# rubocop:disable Naming/PredicateName
Expand Down

0 comments on commit 71c119d

Please sign in to comment.