search for: head_to_tail

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

2006 May 07
1
Anyone care for a braindump?
I have this problem with records that have to be alligned on end- and startdate. I came up with the following. but am not convinced that this is the best way to tackle 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 => [ "i...