Class: Decidim::Debates::VersionsController
- Inherits:
-
ApplicationController
- Object
- Components::BaseController
- ApplicationController
- Decidim::Debates::VersionsController
- 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_resource ⇒ Object
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 |