Sha256: 429cf5d28d22757837d182ec3f79bd4464b84c9b4188a2291ec9e499f49a1946

Contents?: true

Size: 893 Bytes

Versions: 6

Compression:

Stored size: 893 Bytes

Contents

# frozen_string_literal: true

require "active_support/concern"

module Decidim
  module Conferences
    module Admin
      module ConferencesInvites
        module Filterable
          extend ActiveSupport::Concern

          included do
            include Decidim::Admin::Filterable

            private

            def filters
              [:accepted_at_not_null, :rejected_at_not_null, :sent_at_not_null]
            end

            def filters_with_values
              {
                accepted_at_not_null: %w(true false),
                rejected_at_not_null: %w(true false),
                sent_at_not_null: %w(true false)
              }
            end

            def base_query
              collection
            end

            def search_field_predicate
              :user_name_or_user_email_cont
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-conferences-0.29.1 app/controllers/concerns/decidim/conferences/admin/conferences_invites/filterable.rb
decidim-conferences-0.29.0 app/controllers/concerns/decidim/conferences/admin/conferences_invites/filterable.rb
decidim-conferences-0.29.0.rc4 app/controllers/concerns/decidim/conferences/admin/conferences_invites/filterable.rb
decidim-conferences-0.29.0.rc3 app/controllers/concerns/decidim/conferences/admin/conferences_invites/filterable.rb
decidim-conferences-0.29.0.rc2 app/controllers/concerns/decidim/conferences/admin/conferences_invites/filterable.rb
decidim-conferences-0.29.0.rc1 app/controllers/concerns/decidim/conferences/admin/conferences_invites/filterable.rb