lib/groupdate/relation_builder.rb in groupdate-4.0.2 vs lib/groupdate/relation_builder.rb in groupdate-4.1.0

- old
+ new

@@ -165,11 +165,11 @@ clause end def where_clause if @time_range.is_a?(Range) - # doesn't matter whether we include the end of a ... range - it will be excluded later - ["#{column} >= ? AND #{column} <= ?", @time_range.first, @time_range.last] + op = @time_range.exclude_end? ? "<" : "<=" + ["#{column} >= ? AND #{column} #{op} ?", @time_range.first, @time_range.last] else ["#{column} IS NOT NULL"] end end end