app/models/chouette/time_table.rb
# add a peculiar day or switch it from excluded to included
add a peculiar day or switch it from excluded to included
add a peculiar day or switch it from excluded to included
def add_included_day(d)
      if self.excluded_date?(d)
        self.dates.each do |date|
          if date.date === d
            date.in_out = true
          end
        end
      elsif !self.include_in_dates?(d)
        self.dates << Chouette::TimeTableDate.new(:date => d, :in_out => true)
      end
    end
def add_included_day ( d ) if self . excluded_date? ( d ) self . dates . each do | date | if date . date === d date . in_out = true end end elsif ! self . include_in_dates? ( d ) self . dates << Chouette :: TimeTableDate . new ( :date => d , :in_out => true ) end end
add a peculiar day or switch it from excluded to included
add a peculiar day or switch it from excluded to included
d