Skip to content

Commit

Permalink
Update javascript dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Aug 8, 2023
1 parent 16008ff commit a76e97c
Show file tree
Hide file tree
Showing 2 changed files with 2,372 additions and 2,212 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@

# Override last checked at: 31.07.2023
Decidim::ParticipatoryProcesses::ParticipatoryProcessesController.class_eval do
helper_method :has_landing_page
helper_method :participatory_process_groups,
:filtered_processes,
:participatory_processes,
:has_landing_page

private

def collection
# Don't include process groups in this list
@collection ||= paginate(Kaminari.paginate_array(participatory_processes))
@collection ||= participatory_processes
end

def has_landing_page(process_group)
Decidim::ContentBlock
.published
.for_scope(:participatory_process_group_homepage, organization: current_organization)
.where(scoped_resource_id: process_group.id)
.exists?
.exists?(scoped_resource_id: process_group.id)
end
end
Loading

0 comments on commit a76e97c

Please sign in to comment.