Project

General

Profile

Download (326 Bytes) Statistics
| Branch: | Tag: | Revision:
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()

def exists?
File.exists?(self.thumbnail)
end

def public_filename
super(self.thumbnail)
end
end
(10-10/12)