search for: days_inside_new_day

Displaying 1 result from an estimated 1 matches for "days_inside_new_day".

2006 May 07
1
Anyone care for a braindump?
...le this problem. Anyone care for a braindump? def head_to_tail # Remove days that have startdate >= self.startdate AND enddate <= self.enddate # # before after # # |=====| |=====| # <----|--|----> <---| |----> # # @days_inside_new_day = Day.find(:all, :conditions => [ "id != ? and child_id = ? and startdate >= ? and enddate <= ?", self.id, self.child_id, self.startdate, self.enddate]) @days_inside_new_day.collect {|d| d.destroy} # Split days that have startdate <= self.startdate and enddate >...