From fb1b58233df206fff3ec4237caf5fe5576b80a9b Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 11 Apr 2009 00:32:20 +0200 Subject: removed lib/chaos_calendar as we now have the erdgeist-chaos_calendar gem on github - YAY! --- app/models/occurrence.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/models/occurrence.rb b/app/models/occurrence.rb index a8e76a5..8f75c2c 100644 --- a/app/models/occurrence.rb +++ b/app/models/occurrence.rb @@ -1,5 +1,5 @@ # TODO Make a gem out of the c wrapper -require 'lib/chaos_calendar/ical_occurrences' +require 'chaos_calendar' class Occurrence < ActiveRecord::Base @@ -47,7 +47,7 @@ class Occurrence < ActiveRecord::Base # Return value is always an array of Time objects. def self.generate_dates event if event.rrule - Ical_occurrences::occurrences( + ChaosCalendar::occurrences( event.start_time, (Time.now + 5.years), event.rrule -- cgit v1.3