app/helpers/schedules_helper.rb
# parameters of popup window to show schedule
parameters of popup window to show schedule
parameters of popup window to show schedule
def content_element_sizes(date_schedules_pairs)
    date_schedules_pairs.map do |date, schedules|
      schedules.inject(0) do |size, schedule|
        unless schedule.attribute_present?(:banner_run_id)      
          if all_day_long?(schedule) 
            size += 1
          else
            size += 2
          end
        end
        size
      end
    end
  end
def content_element_sizes ( date_schedules_pairs ) date_schedules_pairs . map do | date , schedules | schedules . inject ( 0 ) do | size , schedule | unless schedule . attribute_present? ( :banner_run_id ) if all_day_long? ( schedule ) size += 1 else size += 2 end end size end end end
parameters of popup window to show schedule
parameters of popup window to show schedule
date_schedules_pairs
<not_specific>