Module: Userify::Authentication::InstanceMethods

Defined in:
lib/userify/authentication.rb

Instance Method Summary collapse

Instance Method Details

#current_userObject



16
17
18
# File 'lib/userify/authentication.rb', line 16

def current_user
  @_current_user ||= (user_from_cookie or user_from_session)
end

#signed_in?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/userify/authentication.rb', line 20

def signed_in?
  !current_user.nil?
end