Sha256: fc51fe46d4d8edab98fa412205b9f7addb31684ee598698bf639356f4d50bc89

Contents?: true

Size: 549 Bytes

Versions: 48

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    # This query class filters meetings for component and day
    class ConferenceProgramMeetingsByDay < Rectify::Query
      def initialize(component, day, user = nil)
        @component = component
        @day = day
        @user = user
      end

      def query
        Rectify::Query.merge(
          ConferenceProgramMeetings.new(@component, @user)
        ).query.where(start_time: @day.beginning_of_day..@day.end_of_day).order(start_time: :asc)
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
decidim-conferences-0.26.10 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.26.9 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.26.8 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.26.7 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.26.5 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.26.4 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.26.3 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.26.2 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.26.1 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.26.0 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.26.0.rc2 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.26.0.rc1 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.25.2 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.25.1 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.25.0 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.25.0.rc4 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.25.0.rc3 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.25.0.rc2 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.25.0.rc1 app/queries/decidim/conferences/conference_program_meetings_by_day.rb
decidim-conferences-0.24.3 app/queries/decidim/conferences/conference_program_meetings_by_day.rb