lib/yodeler/models/event.rb in yodeler-0.0.9 vs lib/yodeler/models/event.rb in yodeler-0.0.10

- old
+ new

@@ -9,9 +9,9 @@ delegate :subscriptions, to: :event_type delegate :name, to: :event_type def duration - finished_at - started_at if finished_at.present? and started_at.present? + finished_at - started_at if finished_at.present? && started_at.present? end end end \ No newline at end of file