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