Sha256: 533d376197dcf59b2fdc9370b1ded30a26562a77a3b8904c76747eba31b8877f

Contents?: true

Size: 330 Bytes

Versions: 6

Compression:

Stored size: 330 Bytes

Contents

module ForgotPasswordMailerHelper
  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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tb_core-1.5.4 app/helpers/forgot_password_mailer_helper.rb
tb_core-1.5.3 app/helpers/forgot_password_mailer_helper.rb
tb_core-1.5.2 app/helpers/forgot_password_mailer_helper.rb
tb_core-1.5.1 app/helpers/forgot_password_mailer_helper.rb
tb_core-1.5.0 app/helpers/forgot_password_mailer_helper.rb
tb_core-1.4.8 app/helpers/forgot_password_mailer_helper.rb