Sha256: dae88894f40de6bbc89dd0c1dca37ad91f478b9d3040ea834e314d2992085286
Contents?: true
Size: 1.11 KB
Versions: 24
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true require "active_support/concern" module Decidim module Budgets module Admin module Filterable extend ActiveSupport::Concern included do include Decidim::Admin::Filterable helper Decidim::Budgets::Admin::FilterableHelper private def base_query collection end def search_field_predicate :id_string_or_title_cont end def filters [ :scope_id_eq, :category_id_eq, :selected_at_null ] end def filters_with_values { scope_id_eq: scope_ids_hash(scopes.top_level), category_id_eq: category_ids_hash(categories.first_class), selected_at_null: [true, false] } end # Can't user `super` here, because it does not belong to a superclass # but to a concern. def dynamically_translated_filters [:scope_id_eq, :category_id_eq] end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems