lib/minuteman/time_events.rb in minuteman-1.0.2 vs lib/minuteman/time_events.rb in minuteman-1.0.3

- old
+ new

@@ -7,11 +7,11 @@ # Public: Helper to get all the time trackers ready # # event_name - The event to be tracked # date - A given Time object # - def self.start(event_name, time) - [Year, Month, Week, Day, Hour, Minute].map do |t| + def self.start(time_spans, event_name, time) + time_spans.map do |t| t.new(event_name, time) end end end end