Sha256: eae99460ace8563ed7731fae14fb5a0057ff8f1861bb8ecfcd56036bcb20c8bd
Contents?: true
Size: 740 Bytes
Versions: 49
Compression:
Stored size: 740 Bytes
Contents
module Wbase class AdminMailer < ApplicationMailer def new_user(user) headers "X-SMTPAPI" => { unique_args: { user_id: user.id, mail_eventable_id: user.id, mail_eventable_type: 'User' } }.to_json @user = user mail( to: Wbase.admin_email, subject: "New User #{ user.email }" ) end def new_subscription(user) headers "X-SMTPAPI" => { unique_args: { user_id: user.id, mail_eventable_id: user.id, mail_eventable_type: 'User' } }.to_json @user = user mail( to: Wbase.admin_email, subject: "New Subscription #{ user.email }" ) end end end
Version data entries
49 entries across 49 versions & 1 rubygems