forked from e621ng/e621ng
17 lines
339 B
Ruby
17 lines
339 B
Ruby
# frozen_string_literal: true
|
|
|
|
class UserMailerPreview < ActionMailer::Preview
|
|
def dmail_notice
|
|
dmail = User.admins.first.dmails.first
|
|
UserMailer.dmail_notice(dmail)
|
|
end
|
|
|
|
def forum_notice
|
|
topic = ForumTopic.first
|
|
posts = topic.posts
|
|
user = topic.creator
|
|
|
|
UserMailer.forum_notice(user, topic, posts)
|
|
end
|
|
end
|