added 260907 version of worker toolkit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class CheckinReminderMailerPreview < ActionMailer::Preview
|
||||
# Preview emails at http://localhost:3000/rails/mailers/checkin_reminder_mailer/remind
|
||||
def remind
|
||||
CheckinReminderMailer.remind(email: "test@flaredown.com")
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
class TopPostsMailerPreview < ActionMailer::Preview
|
||||
# Preview emails at http://localhost:3000/rails/mailers/top_posts_mailer/notify
|
||||
def notify
|
||||
TopPostsMailer.notify(email: "test@flaredown.com", top_posts_ids: top_posts_ids)
|
||||
end
|
||||
|
||||
def top_posts_ids
|
||||
posts = Post.pluck(:id).map(&:to_s)
|
||||
posts.any? ? posts.first(5) : []
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
# Preview all emails at http://localhost:3000/rails/mailers/user_data_mailer
|
||||
class UserDataMailerPreview < ActionMailer::Preview
|
||||
# Preview this email at http://localhost:3000/rails/mailers/user_data_mailer/trackings_csv
|
||||
def trackings_csv
|
||||
UserDataMailer.trackings_csv("some@email.yo", "header1,header2\nvalue1, value2\n")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user