I can successfully create a scope to find objects where a date falls in a range -
all_matches = Person.where({
:some_date.gte => first_date,
:some_date.lte => last_date
})
But when I use or instead of where it starts returning data that doesn't match any of the criteria -
all_matches = Person.or({
:some_date.gte => first_date,
:some_date.lte => last_date
}, {
:some_other_date.gte => first_date,
:some_other_date.lte => last_date
})
I don't see any reason for this, I've been using or before but with single values not ranges.