Sha256: 24a1ac347e4dc796ccfd58b39f48353481bec7f84392e65275974b11216b7059

Contents?: true

Size: 651 Bytes

Versions: 3

Compression:

Stored size: 651 Bytes

Contents

module SimpleTokenAuthentication

  class NoAdapterAvailableError < LoadError

    def to_s
      message = <<-HELP.gsub(/^ {8}/, '')
        No adapter could be loaded, probably because of unavailable dependencies.

        Please make sure that Simple Token Authentication is declared after your adapters' dependencies in your Gemfile.

        Example:

            # Gemfile

            gem 'mongoid', '~> 7.0.5' # for example
            gem 'simple_token_authentication', '~> 1.0'

        See https://github.com/gonzalo-bulnes/simple_token_authentication/issues/158
      HELP
    end
  end

  InvalidOptionValue = Class.new(RuntimeError)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_token_authentication-1.18.1 lib/simple_token_authentication/errors.rb
simple_token_authentication-1.18.0 lib/simple_token_authentication/errors.rb
simple_token_authentication-1.17.0 lib/simple_token_authentication/errors.rb