Sha256: 57b15ad39d906fbabbab158832afd4664dd59b0b6388606126035801618e0606

Contents?: true

Size: 424 Bytes

Versions: 48

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

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

      def query
        Decidim::Meetings::Meeting.where(component: @component).visible_meeting_for(@user)
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
decidim-conferences-0.17.2 app/queries/decidim/conferences/conference_program_meetings.rb
decidim-conferences-0.18.0 app/queries/decidim/conferences/conference_program_meetings.rb
decidim-conferences-0.17.1 app/queries/decidim/conferences/conference_program_meetings.rb
decidim-conferences-0.16.1 app/queries/decidim/conferences/conference_program_meetings.rb
decidim-conferences-0.17.0 app/queries/decidim/conferences/conference_program_meetings.rb
decidim-conferences-0.16.0 app/queries/decidim/conferences/conference_program_meetings.rb
decidim-conferences-0.15.2 app/queries/decidim/conferences/conference_program_meetings.rb
decidim-conferences-0.15.1 app/queries/decidim/conferences/conference_program_meetings.rb