From 43dbb153c28ea126901a20ddf0eb23cf0d47acc7 Mon Sep 17 00:00:00 2001 From: Chashmeet Singh Date: Sat, 11 Mar 2017 21:01:06 +0530 Subject: [PATCH] fix: #1345 (remove duplicate text in error message) --- app/models/conference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/conference.rb b/app/models/conference.rb index 0f586b57..d5253a7b 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -657,7 +657,7 @@ class Conference < ActiveRecord::Base # # Reports an error when such a condition is found def valid_date_range? - errors.add(:start_date, 'Start date is greater than End date') if start_date && end_date && start_date > end_date + errors.add(:start_date, 'is greater than End date') if start_date && end_date && start_date > end_date end ##