Class: PeerEvaluationReport

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/peer_evaluation_report.rb

Class Method Summary collapse

Class Method Details

.emailed_on(team_id) ⇒ Object



3
4
5
6
# File 'app/models/peer_evaluation_report.rb', line 3

def self.emailed_on(team_id)
  report = PeerEvaluationReport.where(:team_id => team_id).first
  report.email_date unless report.nil?
end