Class: Decidim::Assemblies::AssembliesController

Inherits:
Decidim::ApplicationController
  • Object
show all
Includes:
ParticipatorySpaceContext
Defined in:
app/controllers/decidim/assemblies/assemblies_controller.rb

Overview

A controller that holds the logic to show Assemblies in a public layout.

Instance Method Summary collapse

Instance Method Details

#indexObject



18
19
20
21
22
# File 'app/controllers/decidim/assemblies/assemblies_controller.rb', line 18

def index
  redirect_to "/404" if published_assemblies.none?

  authorize! :read, Assembly
end

#showObject



24
# File 'app/controllers/decidim/assemblies/assemblies_controller.rb', line 24

def show; end