1

I'm running Feed.history but It's raising the error above at the title because of the scope line I use in Feed model:

scope :history, -> { or({:end.ne => nil}, {:end.lt => Time.current}) }

what and why?!!

Zakwan
  • 1,072
  • 2
  • 11
  • 22

1 Answers1

3

Try this

scope :history, where('$or' => [{:end.ne => nil}, {:end.lt => Time.current}])
abhas
  • 5,193
  • 1
  • 32
  • 56