Sha256: 5be662cac4897fac5cd1a34f69263556a2d00d09285b729154710574062ebbff

Contents?: true

Size: 260 Bytes

Versions: 4

Compression:

Stored size: 260 Bytes

Contents

module Maily
  module EmailsHelper
    def total_emails(mailers)
      mailers.map { |mailer| mailer.emails.size }.sum
    end

    def part_class(part)
      'format_selected' if (part == params[:part]) || (part == 'html' && !params[:part])
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
maily-0.6.3 app/helpers/maily/emails_helper.rb
maily-0.6.2 app/helpers/maily/emails_helper.rb
maily-0.6.1 app/helpers/maily/emails_helper.rb
maily-0.6.0 app/helpers/maily/emails_helper.rb