Class: Decidim::Conferences::ConferencesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Decidim::Conferences::ConferencesController
- Includes:
- ParticipatorySpaceContext
- Defined in:
- app/controllers/decidim/conferences/conferences_controller.rb
Overview
A controller that holds the logic to show Conferences in a public layout.
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
20 21 22 23 24 |
# File 'app/controllers/decidim/conferences/conferences_controller.rb', line 20 def index redirect_to "/404" if published_conferences.none? :list, :conference end |
#show ⇒ Object
26 27 28 |
# File 'app/controllers/decidim/conferences/conferences_controller.rb', line 26 def show check_current_user_can_visit_space end |
#user_diploma ⇒ Object
30 31 32 |
# File 'app/controllers/decidim/conferences/conferences_controller.rb', line 30 def user_diploma render layout: "decidim/diploma" end |