This turned out to be a bug, which was fixed yesterday: https://github.com/thomas-mcdonald/serel/issues/10.
Using date-related scopes with Serel gem (Stack Overflow API)
-
11-03-2022 - |
Question
Has anybody had any luck using the Serel gem in conjunction with its date-related scopes? For instance, this works
q = Serel::Question
questions = q.tagged("JavaScript").pagesize(2).get
But this does not:
d = DateTime.new(2013,2,5)
q.fromdate(d).tagged("JavaScript").pagesize(2).get
Producing the error:
NoMethodError: undefined method `tagged' for 1359676800:Fixnum
Thanks so much WJG
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow