Module: Avocado::Authentication
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/avocado/authentication.rb
Instance Method Summary collapse
Instance Method Details
#current_session ⇒ Object
22 23 24 |
# File 'lib/avocado/authentication.rb', line 22 def current_session Current.session end |
#current_user ⇒ Object
14 15 16 |
# File 'lib/avocado/authentication.rb', line 14 def current_user Current.user end |
#signed_in? ⇒ Boolean
18 19 20 |
# File 'lib/avocado/authentication.rb', line 18 def signed_in? current_user.present? end |