lib/redpomo/entry.rb in redpomo-0.0.10 vs lib/redpomo/entry.rb in redpomo-0.0.11
- old
+ new
@@ -48,10 +48,14 @@
def to_task
Task.new(nil, text)
end
def push!
- to_task.tracker.push_entry!(self)
+ to_task.tracker.push_entry!(self) if pushable?
+ end
+
+ def pushable?
+ to_task.tracker.pushable_entry?(self)
end
end
end