1 2 3 4
@week_endings ||= Actual.get_week_endings(4.weeks.ago.to_date) last = @week_endings.last.week_ending 6.times do |i| ...
Ruby On Appending future dates to t...
by Adkron,
April 23, 2008 12:17
1 2 3
def self.valid?(key) !((h = find_by_key(key)).nil? || h.invitation_details_count >= h.total) end
get rid of the last+7*(i+1)...