Module: Decidim::Elections::ElectionsTypeHelper

Defined in:
decidim-elections/lib/decidim/api/elections_type.rb

Class Method Summary collapse

Class Method Details

.base_scope(component) ⇒ Object


27
28
29
# File 'decidim-elections/lib/decidim/api/elections_type.rb', line 27

def self.base_scope(component)
  Election.where(component: component).where.not(published_at: nil)
end