Devise is a Ruby library that provides me with this class User:
class User < ActiveRecord::Base
has_many :user_tokens
devise :trackable, :confirmable
When recording, a :confirmableconfirmation email is sent during registration.
Last week I had to collect 300 users, so I commented :confirmablea few minutes before the return.
Now I am creating a user interface for custom batch creation, so I need to add / remove :confirmableon the fly. (I could also modify the Devise source code directly, but I wouldn't annoy it)
QUESTION: How to add / remove :confirmableon the fly?
source
share