lib/pigeon/task.rb in pigeon-0.9.1 vs lib/pigeon/task.rb in pigeon-0.9.2
- old
+ new
@@ -86,10 +86,10 @@
def inspect
"<#{self.class}\##{self.object_id}>"
end
def <=>(task)
- self.priority <=> task.priority
+ self.priority.to_i <=> task.priority.to_i
end
protected
def run_state!(state)
# Grab the current state and save it here, as it may switch at any time