Sha256: 78a3861e8bef2130284c60e37dd334497545d3d660b7928c847bbc40edee9548

Contents?: true

Size: 601 Bytes

Versions: 58

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Debates
    class DiffRenderer < BaseDiffRenderer
      private

      # Lists which attributes will be diffable and how they should be rendered.
      def attribute_types
        {
          title: :i18n,
          description: :i18n,
          information_updates: :i18n,
          instructions: :i18n,
          start_time: :string,
          end_time: :string,
          conclusions: :i18n,
          closed_at: :string
        }
      end

      def debate
        @debate ||= Debate.find_by(id: version.item_id)
      end
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
decidim-debates-0.29.1 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.28.4 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.27.9 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.29.0 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.28.3 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.27.8 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.29.0.rc4 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.29.0.rc3 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.29.0.rc2 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.29.0.rc1 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.28.2 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.27.7 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.28.1 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.27.6 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.26.10 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.26.9 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.28.0 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.27.5 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.28.0.rc5 app/services/decidim/debates/diff_renderer.rb
decidim-debates-0.28.0.rc4 app/services/decidim/debates/diff_renderer.rb