class

Devise::Session

Inherits Reference < Object

Constructors

new(flash : Hash(String, String) = {} of String => String)
Source

Instance methods

authenticate(user_class : ActiveRecord::Base.class, scope : String = "user", &)

authenticate_user! equivalent: returns the user or yields the failure path.

Source
current_user(user_class : ActiveRecord::Base.class, scope : String = "user") : ActiveRecord::Base | Nil
Source
flash
Source
flash=(flash : Hash(String, String))
Source
sign_in(user : ActiveRecord::Base, scope : String = "user") : Nil
Source
sign_out(scope : String = "user") : Nil
Source
signed_in?(scope : String = "user") : Bool
Source