Class: Clearance::Constraints::SignedOut

Inherits:
Object
  • Object
show all
Defined in:
lib/clearance/constraints/signed_out.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) matches?(request)

Returns:

  • (Boolean)


4
5
6
7
# File 'lib/clearance/constraints/signed_out.rb', line 4

def matches?(request)
  @request = request
  missing_session? || clearance_session.signed_out?
end