From 4b4846dc762df76ea82c3ef22787a7b193e357c6 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 18 Apr 2009 14:23:16 +0200 Subject: there was actually a small glitch here --- app/models/occurrence.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 # nil, it simply returns the event start_time as only occurrence. # Return value is always an array of Time objects. def self.generate_dates event - if event.rrule + if event.rrule && !event.rrule.empty? ChaosCalendar::occurrences( event.start_time, (Time.now + 5.years), -- cgit v1.3