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
# File 'lib/clearance/constraints/signed_out.rb', line 4

def matches?(request)
  request.env[:clearance].signed_out?
end