Module: FoundersToolkit::Auth::Confirmable::Model
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/founders_toolkit/auth/confirmable/model.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.confirm!(token) ⇒ Object
13 14 15 |
# File 'lib/founders_toolkit/auth/confirmable/model.rb', line 13 def self.confirm!(token) find_by(token: token)&.confirm! end |
Instance Method Details
#confirm! ⇒ Object
17 18 19 |
# File 'lib/founders_toolkit/auth/confirmable/model.rb', line 17 def confirm! update(confirmed: true, confirmation_token: nil) end |