16 lines
536 B
Ruby
16 lines
536 B
Ruby
# Preview all emails at http://localhost:3000/rails/mailers/event_mailer
|
|
class EventMailerPreview < ActionMailer::Preview
|
|
|
|
# Preview this email at http://localhost:3000/rails/mailers/event_mailer/create
|
|
def create
|
|
ActionMailer::Base.default_url_options[:host] = 'localhost:3000'
|
|
EventMailer.create Event.last
|
|
end
|
|
|
|
# Preview this email at http://localhost:3000/rails/mailers/event_mailer/update
|
|
def update
|
|
ActionMailer::Base.default_url_options[:host] = 'localhost:3000'
|
|
EventMailer.update Event.last
|
|
end
|
|
end
|