adapts adding an error to rails 3.2

pull/6827/head
Jens Ulferts 12 years ago
parent a74491bc2c
commit 2ddebe03b0
  1. 2
      app/models/sprint.rb

@ -122,7 +122,7 @@ class Sprint < Version
private
def start_and_end_dates
if self.effective_date && self.start_date && self.start_date >= self.effective_date
errors.add_to_base(:cannot_end_before_it_starts)
errors.add(:base, :cannot_end_before_it_starts)
end
end
end

Loading…
Cancel
Save