Sha256: f75cda9366afbd3a09372b1a65ce8968ae842f9934605c046fa5c0836905b167
Contents?: true
Size: 500 Bytes
Versions: 19
Compression:
Stored size: 500 Bytes
Contents
# frozen_string_literal: true module Decidim module Budgets # This cell overrides *_path methods from Decidim::TagsCell for project tags class ProjectTagsCell < Decidim::TagsCell private def category_path resource_locator([model.budget, model]).index(filter: { with_any_category: [model.category.id.to_s] }) end def scope_path resource_locator([model.budget, model]).index(filter: { with_any_scope: [model.scope.id] }) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems