module FoundersToolkit::Auth::Confirmable::Model
Public Class Methods
confirm!(token)
click to toggle source
# File lib/founders_toolkit/auth/confirmable/model.rb, line 13 def self.confirm!(token) find_by(token: token)&.confirm! end
Public Instance Methods
confirm!()
click to toggle source
# File lib/founders_toolkit/auth/confirmable/model.rb, line 17 def confirm! update(confirmed: true, confirmation_token: nil) end