diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/occurrence.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
| 1 | # TODO Make a gem out of the c wrapper | 1 | # TODO Make a gem out of the c wrapper |
| 2 | require 'lib/chaos_calendar/ical_occurrences' | 2 | require 'chaos_calendar' |
| 3 | 3 | ||
| 4 | class Occurrence < ActiveRecord::Base | 4 | class Occurrence < ActiveRecord::Base |
| 5 | 5 | ||
| @@ -47,7 +47,7 @@ class Occurrence < ActiveRecord::Base | |||
| 47 | # Return value is always an array of Time objects. | 47 | # Return value is always an array of Time objects. |
| 48 | def self.generate_dates event | 48 | def self.generate_dates event |
| 49 | if event.rrule | 49 | if event.rrule |
| 50 | Ical_occurrences::occurrences( | 50 | ChaosCalendar::occurrences( |
| 51 | event.start_time, | 51 | event.start_time, |
| 52 | (Time.now + 5.years), | 52 | (Time.now + 5.years), |
| 53 | event.rrule | 53 | event.rrule |
