Sha256: 8825289251c3843b3dcd9e165d012dbdee96018465fe2d26e104314ae4b06b34
Contents?: true
Size: 637 Bytes
Versions: 16
Compression:
Stored size: 637 Bytes
Contents
# frozen_string_literal: true module Decidim module Plans # The content record is the actual content for each plan section for a # single plan. class Content < Plans::ApplicationRecord include Decidim::Plans::Traceable self.table_name = "decidim_plans_plan_contents" belongs_to :plan, class_name: "Decidim::Plans::Plan", foreign_key: "decidim_plan_id" belongs_to :section, class_name: "Decidim::Plans::Section", foreign_key: "decidim_section_id" belongs_to :user, class_name: "Decidim::User", foreign_key: "decidim_user_id" def title section.body end end end end
Version data entries
16 entries across 16 versions & 1 rubygems