When doing a manual sign_in for the user in Devise, how can you set remember me to yes?
Did some testing. Presenting the findings for others.
The simplest solution, assuming the user object has the rememberable module defined on the devise
declarable, is to set remember_me to true on the user before sign in and redirect:
@user.remember_me = true
sign_in_and_redirect(@user, :event => :authentication)
current_user.remember_me!
https://github.com/plataformatec/devise/blob/master/lib/devise/models/rememberable.rb#L54