Class: Decidim::Initiatives::Admin::InitiativeShareTokensController

Inherits:
Admin::ShareTokensController
  • Object
show all
Includes:
InitiativeAdmin
Defined in:
app/controllers/decidim/initiatives/admin/initiative_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

Instance Method Details

#resourceObject



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

def resource
  current_initiative
end