Sha256: b99ea212162ebf67573c62f626245febffa6dab3bd92ca421fd64eb9c7f2c15a

Contents?: true

Size: 649 Bytes

Versions: 8

Compression:

Stored size: 649 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', '~> 4.0' # 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

8 entries across 8 versions & 1 rubygems

Version Path
simple_token_authentication-1.16.0 lib/simple_token_authentication/errors.rb
simple_token_authentication-1.15.1 lib/simple_token_authentication/errors.rb
simple_token_authentication-1.15.0 lib/simple_token_authentication/errors.rb
simple_token_authentication-1.14.0 lib/simple_token_authentication/errors.rb
simple_token_authentication-1.13.0 lib/simple_token_authentication/errors.rb
simple_token_authentication-1.12.0 lib/simple_token_authentication/errors.rb
simple_token_authentication-1.11.0 lib/simple_token_authentication/errors.rb
simple_token_authentication-1.10.1 lib/simple_token_authentication/errors.rb