Class: ReviseAuth::RouteConstraint
- Inherits:
-
Object
- Object
- ReviseAuth::RouteConstraint
- Includes:
- Authentication
- Defined in:
- lib/revise_auth/route_constraint.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Class Method Summary collapse
-
.helper_method ⇒ Object
Stub out helper_method.
Instance Method Summary collapse
-
#initialize(request) ⇒ RouteConstraint
constructor
A new instance of RouteConstraint.
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
#request ⇒ Object (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_method ⇒ Object
Stub out helper_method
6 7 |
# File 'lib/revise_auth/route_constraint.rb', line 6 def self.helper_method(...) end |