lib/timeboss/calendar/day.rb in timeboss-0.0.9 vs lib/timeboss/calendar/day.rb in timeboss-0.0.10
- old
+ new
@@ -19,10 +19,14 @@
def to_s
name
end
def index
- @_index ||= (start_date - calendar.year_for(start_date).start_date).to_i + 1
+ @_index ||= (start_date - year.start_date).to_i + 1
+ end
+
+ def year_index
+ @_year_index ||= year.year_index
end
private
def down