diff options
| author | hukl <contact@smyck.org> | 2009-04-18 14:23:16 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-04-18 14:23:16 +0200 |
| commit | 4b4846dc762df76ea82c3ef22787a7b193e357c6 (patch) | |
| tree | 67e57947d6550e4b45c5d8d8eab274b5410065c7 /app | |
| parent | 1a80d6cd79235694cc8babf8dc779be3155c9111 (diff) | |
there was actually a small glitch here
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/occurrence.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/occurrence.rb b/app/models/occurrence.rb index 8f75c2c..667ba6f 100644 --- a/app/models/occurrence.rb +++ b/app/models/occurrence.rb | |||
| @@ -46,7 +46,7 @@ class Occurrence < ActiveRecord::Base | |||
| 46 | # nil, it simply returns the event start_time as only occurrence. | 46 | # nil, it simply returns the event start_time as only occurrence. |
| 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 && !event.rrule.empty? |
| 50 | ChaosCalendar::occurrences( | 50 | ChaosCalendar::occurrences( |
| 51 | event.start_time, | 51 | event.start_time, |
| 52 | (Time.now + 5.years), | 52 | (Time.now + 5.years), |
