Class: Locomotive::EditableFileUploader
Instance Method Summary
collapse
#build_store_dir, #to_label, #to_liquid
#download!
Instance Method Details
10
11
12
13
14
|
# File 'app/uploaders/locomotive/editable_file_uploader.rb', line 10
def image?
if self.file.exists?
self.file.content_type.start_with?('image')
end
end
|
#store_dir ⇒ Object
6
7
8
|
# File 'app/uploaders/locomotive/editable_file_uploader.rb', line 6
def store_dir
self.build_store_dir('sites', model.page.site_id, 'pages', model.page.id, 'files')
end
|