module Sis module Core class DocumentRequirement < ApplicationRecord belongs_to :document_type belongs_to :application_setup validates :original, :copy, presence: true delegate(:name, to: :document_type, prefix: true, allow_nil: false) delegate(:name, to: :application_setup, prefix: true, allow_nil: false) end end end