Quantcast
Channel: Check if a model is confirmable - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



Check 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
Browsing latest articles
Browse All 2 View Live




Latest Images