class Workarea::Admin::CommentMailerPreview

Public Instance Methods

comment_notification() click to toggle source
# File lib/workarea/mailer_previews/admin/comment_mailer_preview.rb, line 5
def comment_notification
  comment = Comment.first || Order.first.comments.create(body: 'test order comment')
  id = User.first.id
  CommentMailer.notify(id.to_s, comment.id.to_s)
end