Class: Decidim::Conferences::ConferenceSpeakersController

Inherits:
ApplicationController show all
Includes:
ParticipatorySpaceContext
Defined in:
app/controllers/decidim/conferences/conference_speakers_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

Raises:

  • (ActionController::RoutingError)


10
11
12
13
14
# File 'app/controllers/decidim/conferences/conference_speakers_controller.rb', line 10

def index
  raise ActionController::RoutingError, "No speakers for this conference " if speakers.empty?

  enforce_permission_to :list, :speakers
end