mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
13 lines
343 B
Ruby
13 lines
343 B
Ruby
# Preview all emails at http://localhost:3000/rails/mailers/invitation_mailer
|
|
|
|
class InvitationMailerPreview < ActionMailer::Preview
|
|
def initialize(params={})
|
|
super(params)
|
|
|
|
Current.tenant = Tenant.first
|
|
end
|
|
|
|
def invite
|
|
InvitationMailer.invite(to: 'test@example.com', subject: 'Invitation', body: 'Invitation body')
|
|
end
|
|
end |