Sha256: 5c3c44445117f70d8aa8f28ad626424b1ee2c761496c22a684ec0ae9606795bd

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

class UserMailer < ApplicationMailer
  def activation_needed_email(user)
    @user = user
    @url  = activate_user_url(@user.activation_token)
    mail(to: user.email, subject: 'Welcome to My Awesome Site')
  end

  def activation_success_email(user)
    @user = user
    @url  = login_url
    mail(to: user.email, subject: 'Your account is now activated')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beautiful_scaffold-2.0.3 lib/generators/templates/app/mailers/user_mailer.rb
beautiful_scaffold-2.0.2 lib/generators/templates/app/mailers/user_mailer.rb
beautiful_scaffold-2.0.1 lib/generators/templates/app/mailers/user_mailer.rb