Sha256: b5af16c021af6c80ae6bf73aef49c4e4c4c4a256112431218dd2938497884f3d
Contents?: true
Size: 558 Bytes
Versions: 6
Compression:
Stored size: 558 Bytes
Contents
# frozen_string_literal: true module Decidim module EnhancedTextwork # A collaborative_draft can accept requests to coauthor and contribute class CollaborativeDraftCollaboratorRequest < EnhancedTextwork::ApplicationRecord validates :collaborative_draft, :user, presence: true belongs_to :collaborative_draft, class_name: "Decidim::EnhancedTextwork::CollaborativeDraft", foreign_key: :decidim_enhanced_textwork_collaborative_draft_id belongs_to :user, class_name: "Decidim::User", foreign_key: :decidim_user_id end end end
Version data entries
6 entries across 6 versions & 1 rubygems