Class: Decidim::Initiatives::Admin::ComponentShareTokensController

Inherits:
Admin::ShareTokensController show all
Includes:
InitiativeAdmin
Defined in:
decidim-initiatives/app/controllers/decidim/initiatives/admin/component_share_tokens_controller.rb

Overview

This controller allows sharing unpublished things. It is targeted for customizations for sharing unpublished things that lives under an initiative.

Instance Method Summary collapse

Methods included from InitiativeSlug

#id_from_slug, #slug_from_id

Methods inherited from Admin::ShareTokensController

#create, #destroy, #edit, #index, #new, #update

Methods inherited from Admin::ApplicationController

#permission_class_chain, #permission_scope, #user_has_no_permission_path, #user_not_authorized_path

Methods included from Headers::HttpCachingDisabler

#disable_http_caching

Methods included from TranslatableAttributes

#attachment?, #default_locale?

Methods included from NeedsSnippets

#snippets

Methods included from RegistersPermissions

register_permissions

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#resourceObject



12
13
14
# File 'decidim-initiatives/app/controllers/decidim/initiatives/admin/component_share_tokens_controller.rb', line 12

def resource
  @resource ||= current_participatory_space.components.find(params[:component_id])
end