Module: ForgotPasswordMailerHelper
- Defined in:
- app/helpers/forgot_password_mailer_helper.rb
Instance Method Summary collapse
Instance Method Details
#perishable_token_link_expiration_time_text(user) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/helpers/forgot_password_mailer_helper.rb', line 2 def perishable_token_link_expiration_time_text(user) return if user.class.perishable_token_valid_for.blank? expiration_time = user.updated_at + user.class.perishable_token_valid_for "This link will expire in #{distance_of_time_in_words(Time.current, expiration_time)}." end |