app/jobs/mailtrain/add_subscriptions_job.rb
Complex method Mailtrain::AddSubscriptionsJob#subscribe_to_rebels_list (32.2) Open
Open
def subscribe_to_rebels_list(rebel)
MailtrainService.instance.add_subscription(
ENV['MAILTRAIN_REBELS_LIST_ID'],
{
"EMAIL": rebel.email,
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool
Complex method Mailtrain::AddSubscriptionsJob#subscribe_to_rebels_local_list (29.2) Open
Open
def subscribe_to_rebels_local_list(rebel)
return if rebel.local_group&.mailtrain_list_id.nil?
MailtrainService.instance.add_subscription(
rebel.local_group.mailtrain_list_id,
{
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool