Updated

app/mailers / admin_mailer.rb

A
8 lines of codes
1 methods
5.1 complexity/method
5 churn
5.1 complexity
0 duplications
class AdminMailer < ActionMailer::Base
  1. AdminMailer has no descriptive comment
default from: ->(email){ Site.email_from } def threshold_email_reminder(admin_users, petitions) @petitions = petitions mail(subject: "Petitions alert", to: admin_users.map(&:email)) end end