Class: InviteMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/invite_mailer.rb

Instance Method Summary collapse

Instance Method Details

#invite_notification(user, message, email) ⇒ Object



3
4
5
6
7
8
9
10
# File 'app/mailers/invite_mailer.rb', line 3

def invite_notification(user, message, email)
  @user = user
  @message = message
  mail(:to => email, :subject => I18n.t('muck.invites.invite', :inviter => user.full_name, :app_name => MuckEngine.configuration.application_name)) do |format|
    format.html
    format.text
  end
end

#invited_joined_notification(user, inviter) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'app/mailers/invite_mailer.rb', line 12

def invited_joined_notification(user, inviter)
  @user = user
  @inviter = inviter
  mail(:to => inviter.email, :subject => I18n.t('muck.invites.invited_joined', :user => inviter.full_name, :app_name => MuckEngine.configuration.application_name)) do |format|
    format.html
    format.text
  end
  
end