agenda-libre-ruby/test/mailers/previews/note_mailer_preview.rb

9 lines
326 B
Ruby
Raw Normal View History

2014-06-23 23:39:42 +02:00
# Preview all emails at http://localhost:3000/rails/mailers/note_mailer
class NoteMailerPreview < ActionMailer::Preview
# Preview this email at http://localhost:3000/rails/mailers/note_mailer/create
def create
ActionMailer::Base.default_url_options[:host] = 'localhost:3000'
NoteMailer.create(Note.last)
end
end