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