app/helpers/schedules_helper.rb
# schedules with over days in date_schedules_pairs
schedules with over days in date_schedules_pairs
schedules with over days in date_schedules_pairs
def banner_schedules(date_schedules_pairs)
    date_schedules_pairs.inject([]) do |result, date_schedules_pair|
      date, schedules = *date_schedules_pair
      schedules.each do |schedule|
        if schedule.attribute_present?(:banner_run_id) && !result.map(&:banner_run_id).include?(schedule.banner_run_id)
          result << schedule
        end
      end
      result
    end
  end
def banner_schedules ( date_schedules_pairs ) date_schedules_pairs . inject ( [ ] ) do | result , date_schedules_pair | date , schedules = * date_schedules_pair schedules . each do | schedule | if schedule . attribute_present? ( :banner_run_id ) && ! result . map ( & :banner_run_id ) . include? ( schedule . banner_run_id ) result << schedule end end result end end
schedules with over days in date_schedules_pairs
schedules with over days in date_schedules_pairs
date_schedules_pairs
<not_specific>