Exception: SimpleTokenAuthentication::NoAdapterAvailableError

Inherits:
LoadError
  • Object
show all
Defined in:
lib/simple_token_authentication/errors.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/simple_token_authentication/errors.rb', line 5

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