app/mailers/notification_mailer.rb
Method report_usage
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def report_usage(recipient, metrics, end_date)
@end_date = Time.zone.parse(end_date)
@start_date = @end_date - 7.days
@metrics = metrics
@total_outbound = 0