module Decidim::Core::ParticipatorySpaceResourceableInterface

This interface represents a participatorySpaceResourceable object. It create and array of linked participatory spaces for each registered manifest

Public Instance Methods

linked_participatory_spaces() click to toggle source
# File lib/decidim/api/interfaces/participatory_space_resourceable_interface.rb, line 19
def linked_participatory_spaces
  Decidim::ParticipatorySpaceLink.where("name like 'included_%' and ((from_id=:id and from_type=:type) or (to_id=:id and to_type=:type))",
                                        id: object.id, type: object.class.name)
end