Class: UserNotifier

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/authentication/user_notifier.rb

Instance Method Summary collapse

Instance Method Details

#activation(user) ⇒ Object



8
9
10
11
12
# File 'lib/authentication/user_notifier.rb', line 8

def activation(user)
  setup_email(user)
  @subject    += 'Your account has been activated!'
  @body[:url]  = "http://YOURSITE/"
end

#signup_notification(user) ⇒ Object



2
3
4
5
6
# File 'lib/authentication/user_notifier.rb', line 2

def (user)
  setup_email(user)
  @subject    += 'Please activate your new account'
  @body[:url]  = "http://YOURSITE/account/activate/#{user.activation_code}"
end