Module: CalculateStat::InstanceMethods

Defined in:
lib/enju_core/calculate_stat.rb

Instance Method Summary collapse

Instance Method Details

#check_dateObject



21
22
23
24
25
26
27
28
# File 'lib/enju_core/calculate_stat.rb', line 21

def check_date
  if self.start_date and self.end_date
    if self.start_date >= self.end_date
      errors.add(:start_date)
      errors.add(:end_date)
    end
  end
end