Sha256: 3dd46aafe09f0da3cdb551f26b44b8e7d7ed34532193115d4e16a44c4f50eeb7

Contents?: true

Size: 308 Bytes

Versions: 11

Compression:

Stored size: 308 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
authentication-zero-0.0.23 lib/generators/authentication/templates/app/mailers/password_mailer.rb.tt
authentication-zero-0.0.22 lib/generators/authentication/templates/mailers/password_mailer.rb.tt
authentication-zero-0.0.21 lib/generators/authentication/templates/mailers/password_mailer.rb.tt
authentication-zero-0.0.20 lib/generators/authentication/templates/mailers/password_mailer.rb.tt
authentication-zero-0.0.19 lib/generators/authentication/templates/mailers/password_mailer.rb.tt
authentication-zero-0.0.18 lib/generators/authentication/templates/mailers/password_mailer.rb.tt
authentication-zero-0.0.17 lib/generators/authentication/templates/mailers/password_mailer.rb.tt
authentication-zero-0.0.16 lib/generators/authentication/templates/mailers/password_mailer.rb.tt
authentication-zero-0.0.15 lib/generators/authentication/templates/mailers/password_mailer.rb.tt
authentication-zero-0.0.14 lib/generators/authentication/templates/mailers/password_mailer.rb.tt
authentication-zero-0.0.13 lib/generators/authentication/templates/mailers/password_mailer.rb.tt