Sha256: f9fad3089990428dd3b1d1288cbf1189b699aa4c4a275fb3947ad3a2f72ca419
Contents?: true
Size: 491 Bytes
Versions: 16
Compression:
Stored size: 491 Bytes
Contents
module Maily module EmailsHelper def total_emails(mailers) mailers.map { |mailer| mailer.total_emails }.sum end def email_description(email) return unless email.description content_tag(:div, class: 'mail_description') do concat content_tag(:strong, 'Description ') concat email.description end end def part_class(part) 'format_selected' if (part == params[:part]) || (part == 'html' && !params[:part]) end end end
Version data entries
16 entries across 16 versions & 1 rubygems