app/models/refine/conditions/date_condition.rb in refine-rails-2.9.0 vs app/models/refine/conditions/date_condition.rb in refine-rails-2.9.1

- old
+ new

@@ -50,10 +50,10 @@ false end end def date1_must_be_less_than_date2 - return true unless date1 && date2 + return true unless [CLAUSE_BETWEEN, CLAUSE_NOT_BETWEEN].include?(@clause) && date1 && date2 if Date.strptime(date1, "%Y-%m-%d") > Date.strptime(date2, "%Y-%m-%d") errors.add(:base, I18n.t("#{I18N_PREFIX}date1_greater_date2_error")) false else true