Sha256: 9324f54c37aa6c383704e22d13d8dc5f7c52378e375a3c39abb0232d207ad1bd
Contents?: true
Size: 565 Bytes
Versions: 17
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true module Decidim # This query finds the public ActionLog entries that can be shown in the # activities views of the application within a Decidim participatory space. class ParticipatorySpaceLastActivity < Decidim::Query attr_reader :participatory_space, :organization def initialize(participatory_space) @participatory_space = participatory_space @organization = participatory_space&.organization end def query LastActivity.new(organization).query.where(participatory_space:) end end end
Version data entries
17 entries across 17 versions & 1 rubygems