diff options
| -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), |
