Sha256: 15cca2672c47d9fb085ba70963a8a75953223d9df78b2e977a27bf934f6851c5

Contents?: true

Size: 312 Bytes

Versions: 8

Compression:

Stored size: 312 Bytes

Contents

module StudyEngine
  module MailerHelpers
    def domains_and_group_summary assessment
      finished = assessment.results.select(&:finished?).count
      total = assessment.results.count
      domains = [finished, total].join("/")
      [domains, assessment.group_index_name].join(" ").strip
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
study_engine-0.3.1 app/helpers/study_engine/mailer_helpers.rb
study_engine-0.3.0 app/helpers/study_engine/mailer_helpers.rb
study_engine-0.2.2 app/helpers/study_engine/mailer_helpers.rb
study_engine-0.2.1 app/helpers/study_engine/mailer_helpers.rb
study_engine-0.2.0 app/helpers/study_engine/mailer_helpers.rb
study_engine-0.1.1 app/helpers/study_engine/mailer_helpers.rb
study_engine-0.1.0 app/helpers/study_engine/mailer_helpers.rb
study_engine-0.0.2 app/helpers/study_engine/mailer_helpers.rb