af83/chouette-core

View on GitHub
app/models/concerns/documentable.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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