Fix namespaces for Zeitwerk class loader

This commit is contained in:
Alex Sherman 2021-03-05 18:00:45 +05:00
parent 32634c7a8b
commit 43b3033991
78 changed files with 666 additions and 704 deletions

View file

@ -16,8 +16,8 @@ namespace :documents do
next if x.documentable_id.blank?
document_type = case x.documentable_type
when 'Domain' then DomainVersion
when 'Contact'then ContactVersion
when 'Domain' then Version::DomainVersion
when 'Contact'then Version::ContactVersion
end
dc = document_type.where(item_id: x.documentable_id)