Class: Decidim::Assemblies::VisibleAssemblies
- Inherits:
-
Query
- Object
- Query
- Decidim::Assemblies::VisibleAssemblies
- Defined in:
- app/queries/decidim/assemblies/visible_assemblies.rb
Overview
This query class filters assemblies given a current_user.
Instance Method Summary collapse
-
#initialize(user) ⇒ VisibleAssemblies
constructor
A new instance of VisibleAssemblies.
- #query ⇒ Object
Constructor Details
#initialize(user) ⇒ VisibleAssemblies
Returns a new instance of VisibleAssemblies.
7 8 9 |
# File 'app/queries/decidim/assemblies/visible_assemblies.rb', line 7 def initialize(user) @user = user end |