Class: Workarea::DirectUpload::Asset

Inherits:
Object
  • Object
show all
Includes:
Processor
Defined in:
app/services/workarea/direct_upload/asset.rb

Instance Method Summary collapse

Methods included from Processor

#initialize

Instance Method Details

#performObject



6
7
8
9
10
11
# File 'app/services/workarea/direct_upload/asset.rb', line 6

def perform
  Content::Asset.create!(
    file: direct_upload.file,
    file_name: direct_upload.filename
  )
end