Class: Decidim::Conferences::ConferencesController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- ApplicationController
- Decidim::Conferences::ConferencesController
- Includes:
- Paginable, ParticipatorySpaceContext
- Defined in:
- decidim-conferences/app/controllers/decidim/conferences/conferences_controller.rb
Overview
A controller that holds the logic to show Conferences in a public layout.
Constant Summary
Constants included from Paginable
Instance Method Summary collapse
Methods included from RegistersPermissions
Methods included from UserBlockedChecker
#check_user_block_status, #check_user_not_blocked
Methods included from NeedsSnippets
Methods included from Headers::HttpCachingDisabler
Methods included from HasStoredPath
#skip_store_location?, #store_current_location
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#index ⇒ Object
25 26 27 28 29 |
# File 'decidim-conferences/app/controllers/decidim/conferences/conferences_controller.rb', line 25 def index raise ActionController::RoutingError, "Not Found" if published_conferences.none? :list, :conference end |
#show ⇒ Object
31 32 33 |
# File 'decidim-conferences/app/controllers/decidim/conferences/conferences_controller.rb', line 31 def show check_current_user_can_visit_space end |
#user_diploma ⇒ Object
35 36 37 |
# File 'decidim-conferences/app/controllers/decidim/conferences/conferences_controller.rb', line 35 def user_diploma render layout: "decidim/diploma" end |