Class: Decidim::Initiatives::VersionsController

Inherits:
ApplicationController show all
Includes:
NeedsInitiative, ResourceVersionsConcern, ParticipatorySpaceContext
Defined in:
app/controllers/decidim/initiatives/versions_controller.rb

Overview

Exposes Initiatives versions so users can see how an Initiative has been updated through time.

Instance Method Summary collapse

Methods inherited from ApplicationController

#permission_class_chain, #permission_scope, #permissions_context

Instance Method Details

#versioned_resourceObject



14
15
16
# File 'app/controllers/decidim/initiatives/versions_controller.rb', line 14

def versioned_resource
  current_initiative
end