Methods
Instance Public methods
find_by_token_for(purpose, token) Link
Finds a record using a given token
for a predefined purpose
. Returns nil
if the token is invalid or the record was not found.
find_by_token_for!(purpose, token) Link
Finds a record using a given token
for a predefined purpose
. Raises ActiveSupport::MessageVerifier::InvalidSignature
if the token is invalid (e.g. expired, bad format, etc). Raises ActiveRecord::RecordNotFound
if the token is valid but the record was not found.