Method: Devise::Models::Confirmable#pending_any_confirmation
- Defined in:
- lib/devise/models/confirmable.rb
#pending_any_confirmation ⇒ Object (protected)
Checks whether the record requires any confirmation.
237 238 239 240 241 242 243 244 |
# File 'lib/devise/models/confirmable.rb', line 237 def pending_any_confirmation if (!confirmed? || pending_reconfirmation?) yield else self.errors.add(:email, :already_confirmed) false end end |