Answer by sjaime for Check if a model is confirmable
You could do something like the following: resource.class.devise_modules.include?(:confirmable) Or resource.respond_to?(:confirmed?) Regarding to check if the user is already confirmed, you could use...
View ArticleCheck if a model is confirmable
I'm kinda new to Rails, so if I am doing this totally wrong, just tell me :) I have two models built with devise in my rails app, one is confirmable, the other is not. I would like to set the...
View Article
More Pages to Explore .....