app/models/caboose/calendar_event_group.rb in caboose-cms-0.9.229 vs app/models/caboose/calendar_event_group.rb in caboose-cms-1.0.1
- old
+ new
@@ -49,15 +49,15 @@
d = self.date_start - self.date_start.strftime('%w').to_i.days
while d <= self.date_end
(0..6).each do |i|
d = d + 1
- # Caboose.log("d = #{d}")
+ Caboose.log("d = #{d}")
next if d < self.date_start
break if d > self.date_end
w = d.strftime('%w').to_i
if (w == 0 && self.sun) || (w == 1 && self.mon) || (w == 2 && self.tue) || (w == 3 && self.wed) || (w == 4 && self.thu) || (w == 5 && self.fri) || (w == 6 && self.sat)
- # Caboose.log("Found a day")
+ Caboose.log("Found a day")
if !CalendarEvent.where("calendar_event_group_id = ? and cast(begin_date as date) = ?", self.id, d).exists?
e.duplicate(d)
end
dates << d.to_date
end