Module: Authenticate::Testing::ViewHelpers::CurrentUser
- Defined in:
- lib/authenticate/testing/view_helpers.rb
Instance Attribute Summary collapse
-
#current_user ⇒ Object
Returns the value of attribute current_user.
Instance Method Summary collapse
Instance Attribute Details
#current_user ⇒ Object
Returns the value of attribute current_user.
16 17 18 |
# File 'lib/authenticate/testing/view_helpers.rb', line 16 def current_user @current_user end |
Instance Method Details
#logged_in? ⇒ Boolean
18 19 20 |
# File 'lib/authenticate/testing/view_helpers.rb', line 18 def logged_in? current_user.present? end |
#logged_out? ⇒ Boolean
22 23 24 |
# File 'lib/authenticate/testing/view_helpers.rb', line 22 def logged_out? !logged_in? end |