Class: Decidim::Assemblies::ParentAssemblies

Inherits:
Rectify::Query
  • Object
show all
Defined in:
decidim-assemblies/app/queries/decidim/assemblies/parent_assemblies.rb

Overview

This query filters assemblies so only parent assemblies are returned.

Instance Method Summary collapse

Instance Method Details

#queryObject


7
8
9
# File 'decidim-assemblies/app/queries/decidim/assemblies/parent_assemblies.rb', line 7

def query
  Decidim::Assembly.where(parent: nil)
end