class PasswordMailer < ApplicationMailer def reset @signed_id = params[:<%= singular_table_name %>].signed_id(purpose: :password_reset, expires_in: 20.minutes) mail to: params[:<%= singular_table_name %>].email, subject: "Reset your password" end end