2014-05-25 23:59:03 +02:00
|
|
|
# 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'
|
2014-07-01 15:50:39 +02:00
|
|
|
EventMailer.create Event.last
|
2014-05-25 23:59:03 +02:00
|
|
|
end
|
2014-07-01 21:55:38 +02:00
|
|
|
|
|
|
|
# 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
|
2014-05-25 23:59:03 +02:00
|
|
|
end
|