Add logging to inviting

This commit is contained in:
Raphael 2010-11-25 01:06:25 -05:00
parent 08ba387311
commit 12c049fec2

View file

@ -52,6 +52,7 @@ class Invitation
invitee.send(:generate_invitation_token)
invitee.invite!
Rails.logger.info("event=invitation_sent to=#{opts[:email]} #{"inviter=#{opts[:from].diaspora_handle}" if opts[:from]}")
end
invitee
end