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 = "    No adapter could be loaded, probably because of unavailable dependencies.\n\n    Please make sure that Simple Token Authentication is declared after your adapters' dependencies in your Gemfile.\n\n    Example:\n\n        # Gemfile\n\n        gem 'mongoid', '~> 7.0.5' # for example\n        gem 'simple_token_authentication', '~> 1.0'\n\n    See https://github.com/gonzalo-bulnes/simple_token_authentication/issues/158\n  HELP\nend\n".gsub(/^ {8}/, '')