app/dao/calendar_dao.rb
# Determinates the col span forose fields that could be present many times
# and should not be shown in calendar views
#

Determinates the col span forose fields that could be present many times
and should not be shown in calendar views
Determinates the col span forose fields that could be present many times and should not be shown in calendar views
def calculate_span
      date_span_count = 0
      pool_span_count = 0
      @meeting_sessions.reverse.each do |meeting_session_dao|
        date_span_count += 1
        pool_span_count += 1
        if meeting_session_dao.date_span > 0
          meeting_session_dao.date_span = date_span_count
          date_span_count = 0
        end
        if meeting_session_dao.pool_span > 0
          meeting_session_dao.pool_span = pool_span_count
          pool_span_count = 0
        end
      end
    end
def calculate_span date_span_count = 0 pool_span_count = 0 @meeting_sessions . reverse . each do | meeting_session_dao | date_span_count += 1 pool_span_count += 1 if meeting_session_dao . date_span > 0 meeting_session_dao . date_span = date_span_count date_span_count = 0 end if meeting_session_dao . pool_span > 0 meeting_session_dao . pool_span = pool_span_count pool_span_count = 0 end end end
Determinates the col span forose fields that could be present many times
and should not be shown in calendar views
Determinates the col span forose fields that could be present many times and should not be shown in calendar views