root/app/models/artwork_step_thumbnail.rb @ ec3dc179
b689e231 | Marc Dequènes (Duck) | class ArtworkStepThumbnail < ArtworkStep
|
|
belongs_to :artwork_step_image, :foreign_key => 'parent_id'
|
|||
has_attachment :content_type => :image,
|
|||
:storage => :file_system,
|
|||
:path_prefix => base_upload_path()
|
|||
6fed455d | Marc Dequènes (Duck) | ||
def exists?
|
|||
File.exists?(self.thumbnail)
|
|||
end
|
|||
def public_filename
|
|||
super(self.thumbnail)
|
|||
end
|
|||
b689e231 | Marc Dequènes (Duck) | end
|