lib/groupdate/relation_builder.rb in groupdate-5.2.0 vs lib/groupdate/relation_builder.rb in groupdate-5.2.1

- old
+ new

@@ -192,15 +192,15 @@ def where_clause if @time_range.is_a?(Range) if @time_range.end op = @time_range.exclude_end? ? "<" : "<=" if @time_range.begin - ["#{column} >= ? AND #{column} #{op} ?", @time_range.first, @time_range.last] + ["#{column} >= ? AND #{column} #{op} ?", @time_range.begin, @time_range.end] else - ["#{column} #{op} ?", @time_range.last] + ["#{column} #{op} ?", @time_range.end] end else - ["#{column} >= ?", @time_range.first] + ["#{column} >= ?", @time_range.begin] end else ["#{column} IS NOT NULL"] end end