Sha256: 4c0bcbae3d71a0eef5ec8dd9e38fa535d182a2b8193ae3a561b026a231fa4a93
Contents?: true
Size: 601 Bytes
Versions: 41
Compression:
Stored size: 601 Bytes
Contents
# In Rails 4.1 and above, visit: # http://localhost:3000/rails/mailers # to see a preview of the following 3 emails: class EffectivePostsMailerPreview < ActionMailer::Preview def post_submitted_to_admin Effective::PostsMailer.post_submitted_to_admin(build_preview_post) end protected def build_preview_post post = Effective::Post.new( title: 'An example post', category: EffectivePosts.categories.first.presence || 'posts', published_at: Time.zone.now, draft: true, body: 'This is a new post that has been submitted by a public user.' ) end end
Version data entries
41 entries across 41 versions & 1 rubygems