Sha256: 6997ebf2408383ba0a224597713493c025318dad1c83f35f7aada345caeb500b
Contents?: true
Size: 679 Bytes
Versions: 60
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true module Decidim module Conferences # Helpers related to the Conferences layout. module ConferenceProgramHelper include Decidim::ResourceHelper def meetings_for_day(component, day, user) meetings = Decidim::Conferences::ConferenceProgramMeetingsByDay.new(component, day, user).query meetings_by_time = {} meetings.each do |meeting| meetings_by_time[start_time: meeting.start_time, end_time: meeting.end_time] ||= [] meetings_by_time[start_time: meeting.start_time, end_time: meeting.end_time] << { meeting: meeting } end meetings_by_time end end end end
Version data entries
60 entries across 60 versions & 1 rubygems