Class: ReviseAuth::RouteConstraint

Inherits:
Object
  • Object
show all
Includes:
Authentication
Defined in:
lib/revise_auth/route_constraint.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Authentication

#authenticate_user, #authenticate_user!, #authenticated_user_from_session, #current_user, #login, #logout, #require_unauthenticated, #resolve_after_login_path, #resolve_after_register_path, #return_to_location, #revise_auth_controller?, #stash_return_to_location, #user_signed_in?

Constructor Details

#initialize(request) ⇒ RouteConstraint

Returns a new instance of RouteConstraint.



13
14
15
# File 'lib/revise_auth/route_constraint.rb', line 13

def initialize(request)
  @request = request
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



3
4
5
# File 'lib/revise_auth/route_constraint.rb', line 3

def request
  @request
end

Class Method Details

.helper_methodObject

Stub out helper_method



6
7
# File 'lib/revise_auth/route_constraint.rb', line 6

def self.helper_method(...)
end