Class: Pageflow::ImageFile

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ImageFileStateMachine, UploadedFile
Defined in:
app/models/pageflow/image_file.rb

Instance Method Summary collapse

Methods included from UploadedFile

#usage_id

Methods included from ImageFileStateMachine

#publish!, #retry!

Instance Method Details

#attachmentObject



32
33
34
# File 'app/models/pageflow/image_file.rb', line 32

def attachment
  processed_attachment.present? ? processed_attachment : unprocessed_attachment
end

#attachment=(value) ⇒ Object



36
37
38
# File 'app/models/pageflow/image_file.rb', line 36

def attachment=(value)
  self.unprocessed_attachment = value
end