Class: Decidim::Initiatives::WidgetsController

Inherits:
WidgetsController
  • Object
show all
Includes:
NeedsInitiative
Defined in:
app/controllers/decidim/initiatives/widgets_controller.rb

Overview

This controller provides a widget that allows embedding the initiative

Instance Method Summary collapse

Instance Method Details

#showObject



15
16
17
18
19
# File 'app/controllers/decidim/initiatives/widgets_controller.rb', line 15

def show
  enforce_permission_to :embed, :participatory_space, current_participatory_space: model if model

  super
end