Class: ActiveEntry::Base::Authentication

Inherits:
ActiveEntry::Base show all
Defined in:
lib/active_entry/base.rb

Direct Known Subclasses

ApplicationPolicy::Authentication

Constant Summary collapse

AUTH_ERROR =
NotAuthenticatedError

Class Method Summary collapse

Methods inherited from ActiveEntry::Base

#initialize, #pass!, #pass?, #success

Constructor Details

This class inherits a constructor from ActiveEntry::Base

Class Method Details

.pass!(method_name, **args) ⇒ Object



6
7
8
# File 'lib/active_entry/base.rb', line 6

def self.pass! method_name, **args
  new(method_name, **args).pass!
end

.pass?(method_name, **args) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/active_entry/base.rb', line 10

def self.pass? method_name, **args
  new(method_name, **args).pass?
end