app/models/repeating_event.rb
# returns array of all dates with repeating events
returns array of all dates with repeating events
returns array of all dates with repeating events
def dates_array
    start_date = self.start_date.to_date
    end_date = self.end_date.to_date
    array = Array.new
    return array if end_date<start_date
    (start_date..end_date).each do |i|
      array << i if self.days_int.include? i.wday
    end
    array
  end
def dates_array start_date = self . start_date . to_date end_date = self . end_date . to_date array = Array . new return array if end_date < start_date ( start_date .. end_date ) . each do | i | array << i if self . days_int . include? i . wday end array end
returns array of all dates with repeating events
returns array of all dates with repeating events