This is a potentially ugly to solve, but you can actually compare two arrays. So it isn't so bad. If the first attributes are the same, it sorts by the second.
def <=>(other)
[self.dtstart, self.dtend] <=> [other.dtstart, other.dtend]
end
This is a potentially ugly to solve, but you can actually compare two arrays. So it isn't so bad. If the first attributes are the same, it sorts by the second.
def <=>(other)
[self.dtstart, self.dtend] <=> [other.dtstart, other.dtend]
end
0.085 seconds
Hi Ryan,
I cannot understand this at all. Nor can I understand why I can’t get to my footboot email with my usual password any more. What do I have to do?
Stella / 10:26am / 10 June 2008
Hi Stella. It should be working again now. I had changed the address because I’d been told I should, but as it turned out that was the wrong thing to do.
Ryan / 10:43am / 10 June 2008
Thanks Ryan. Problem solved!
Stella / 10:16am / 11 June 2008