Domanda

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

È stato utile?

Soluzione

This turned out to be a bug, which was fixed yesterday: https://github.com/thomas-mcdonald/serel/issues/10.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top