Sha256: 74a5c3af058eef56b7bcc5e600a7a5833b27ebd2c9dd50c836f218be05beac9c

Contents?: true

Size: 487 Bytes

Versions: 44

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Debates
    # Exposes Debates versions so users can see how a Debate has been updated
    # through time.
    class VersionsController < Decidim::Debates::ApplicationController
      include Decidim::ApplicationHelper
      include Decidim::ResourceVersionsConcern

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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
decidim-debates-0.25.0.rc4 app/controllers/decidim/debates/versions_controller.rb
decidim-debates-0.25.0.rc3 app/controllers/decidim/debates/versions_controller.rb
decidim-debates-0.25.0.rc2 app/controllers/decidim/debates/versions_controller.rb
decidim-debates-0.25.0.rc1 app/controllers/decidim/debates/versions_controller.rb