Is there a way to use the configuration controller helpers in the model, namely user_signed_in? I tried adding the following line to my user model, but this does not work:
include Devise::Controllers::Helpers
In particular, I want users to be allowed to create without a password, for which I am implementing the "password_required?" Method. In this method, I want to check (before creating a user) if another user creates this user or the weather that he / she signs. Any help would be greatly appreciated.
source
share