app/models/concerns/documentable.rb
# frozen_string_literal: true
module Documentable
extend ActiveSupport::Concern
included do
has_many :document_memberships, as: :documentable, dependent: :delete_all
has_many :documents, through: :document_memberships
end
def same_documentable_workbench?(_workbench)
false
end
end