Class: Dscf::Core::Document

Inherits:
ApplicationRecord show all
Includes:
AttachmentUrls
Defined in:
app/models/dscf/core/document.rb

Instance Method Summary collapse

Instance Method Details

#file_urlsObject



13
14
15
16
17
# File 'app/models/dscf/core/document.rb', line 13

def file_urls
  return [] unless files.attached?

  files.map { |file| attachment_url_for(file) }
end