Sha256: b2d3e210eb89cebd4d009398abd90139d91eb31a9938e005de16bfe3e773f14c
Contents?: true
Size: 604 Bytes
Versions: 37
Compression:
Stored size: 604 Bytes
Contents
module Pay class UserMailer < ApplicationMailer def receipt if params[:charge].respond_to? :receipt attachments[params[:charge].filename] = params[:charge].receipt end mail to: to end def refund mail to: to end def subscription_renewing mail to: to end def payment_action_required mail to: to end private def to if params[:billable].respond_to?(:customer_name) "#{params[:billable].customer_name} <#{params[:billable].email}>" else params[:billable].email end end end end
Version data entries
37 entries across 37 versions & 1 rubygems