Sha256: 36fd9d143f3c8847de4ca162a4d316c8d55cd8df901fa4d7257e9d45320b8e3d
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
# frozen_string_literal: true module Decidim module Lausanne 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: { category_id: [model.category.id.to_s] }) end def scope_path resource_locator([model.budget, model]).index(filter: { scope_id: [model.scope.id] }) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-lausanne-budgets-0.1.0 | app/cells/decidim/lausanne/budgets/project_tags_cell.rb |