Module: MuckFriends::Mailers::FriendMailer

Extended by:
ActiveSupport::Concern
Defined in:
lib/muck-friends/mailers/friend_mailer.rb

Instance Method Summary collapse

Instance Method Details

#follow(inviter, invited) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/muck-friends/mailers/friend_mailer.rb', line 7

def follow(inviter, invited)
  @inviter = inviter
  @invited = invited
  mail(:to => invited.email, :subject => I18n.t('muck.friends.following_you', :name => inviter., :application_name => MuckEngine.configuration.application_name)) do |format|
    format.html
    format.text
  end
end

#friend_request(inviter, invited) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/muck-friends/mailers/friend_mailer.rb', line 16

def friend_request(inviter, invited)
  @inviter = inviter
  @invited = invited
  mail(:to => invited.email, :subject => I18n.t('muck.friends.friend_request', :name => inviter., :application_name => MuckEngine.configuration.application_name)) do |format|
    format.html
    format.text
  end
end