Sha256: ec987d4d90f954486c437a06aff8e40019b6dbee5936f5a6c31c665f516102ad
Contents?: true
Size: 865 Bytes
Versions: 3
Compression:
Stored size: 865 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryDocuments class Annotation < ApplicationRecord belongs_to :section, class_name: "Decidim::ParticipatoryDocuments::Section" has_many :suggestions, class_name: "Decidim::ParticipatoryDocuments::Suggestion", dependent: :restrict_with_error, as: :suggestable delegate :document, to: :section delegate :organization, :participatory_space, :component, to: :document, allow_nil: true def self.log_presenter_class_for(_log) Decidim::ParticipatoryDocuments::AdminLog::AnnotationPresenter end def serialize @serialize ||= { id: id, position: position, rect: rect, section: section.id, section_number: section.position, page_number: page_number } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems