Class: Decidim::Proposals::ProposalListHelper

Inherits:
Core::ComponentListBase show all
Defined in:
decidim-proposals/lib/decidim/api/proposals_type.rb

Instance Attribute Summary

Attributes inherited from Core::ComponentListBase

#model_class

Instance Method Summary collapse

Methods inherited from Core::ComponentListBase

#call, #initialize

Methods included from Core::NeedsApiFilterAndOrder

#add_filter_keys, #add_order_keys

Constructor Details

This class inherits a constructor from Decidim::Core::ComponentListBase

Instance Method Details

#query_scopeObject

only querying published posts


7
8
9
# File 'decidim-proposals/lib/decidim/api/proposals_type.rb', line 7

def query_scope
  super.published
end