Class: Decidim::Debates::VersionsController

Inherits:
ApplicationController show all
Includes:
ApplicationHelper, ResourceVersionsConcern
Defined in:
app/controllers/decidim/debates/versions_controller.rb

Overview

Exposes Debates versions so users can see how a Debate has been updated through time.

Instance Method Summary collapse

Instance Method Details

#versioned_resourceObject



11
12
13
# File 'app/controllers/decidim/debates/versions_controller.rb', line 11

def versioned_resource
  @versioned_resource ||= present(Debate.where(component: current_component).find(params[:debate_id]))
end