Module: Clearance::Authentication::InstanceMethods
- Defined in:
- lib/clearance/authentication.rb
Instance Method Summary collapse
Instance Method Details
#current_user ⇒ Object
16 17 18 |
# File 'lib/clearance/authentication.rb', line 16 def current_user @_current_user ||= ( || user_from_session) end |
#signed_in? ⇒ Boolean
20 21 22 |
# File 'lib/clearance/authentication.rb', line 20 def signed_in? ! current_user.nil? end |