app/mailers/invite_mailer.rb in invitation-0.1.1 vs app/mailers/invite_mailer.rb in invitation-0.2
- old
+ new
@@ -1,5 +1,6 @@
+# Send invitations to new and existing users.
class InviteMailer < ActionMailer::Base
def existing_user(invite)
@invite = invite
mail(
from: Invitation.configuration.mailer_sender,
@@ -8,10 +9,10 @@
)
end
def new_user(invite)
@invite = invite
- @user_registration_url = Invitation.configuration.user_registration_url.call(:invite_token => @invite.token)
+ @user_registration_url = Invitation.configuration.user_registration_url.call(invite_token: @invite.token)
mail(
from: Invitation.configuration.mailer_sender,
to: @invite.email,
subject: I18n.t('invitation.invite_mailer.new_user.subject')
)