lib/decidim/meetings/component.rb in decidim-meetings-0.28.4 vs lib/decidim/meetings/component.rb in decidim-meetings-0.29.0.rc1

- old
+ new

@@ -17,15 +17,15 @@ component.register_resource(:meeting) do |resource| resource.model_class_name = "Decidim::Meetings::Meeting" resource.template = "decidim/meetings/meetings/linked_meetings" resource.card = "decidim/meetings/meeting" resource.reported_content_cell = "decidim/meetings/reported_content" - resource.actions = %w(join comment) + resource.actions = %w(join comment reply_poll) resource.searchable = true end component.register_stat :meetings_count, primary: true, priority: Decidim::StatsRegistry::MEDIUM_PRIORITY do |components, start_at, end_at| - meetings = Decidim::Meetings::FilteredMeetings.for(components, start_at, end_at).except_withdrawn + meetings = Decidim::Meetings::FilteredMeetings.for(components, start_at, end_at).not_withdrawn meetings.count end component.register_stat :followers_count, tag: :followers, priority: Decidim::StatsRegistry::LOW_PRIORITY do |components, start_at, end_at| meetings_ids = Decidim::Meetings::FilteredMeetings.for(components, start_at, end_at).pluck(:id)