Sha256: fbaf382eeb187a3cb700fc0fc802e0658cb2b0117ffb95beb7b15802af0e9077

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

module Applicants
  class Panel < ActiveRecord::Base
    self.include_root_in_json = false

    has_many :applicants

    attr_accessible :remote_panel_id

    def statistics
      {
        applicants_submitted_video_for_approval: applicants.submitted_video_for_approval.count,
        applicants_approved: applicants.with_state(:approved).count
      }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
applicants-0.11.0 app/models/applicants/panel.rb