Class: FileColumn::NoUploadedFile
Overview
Instance Attribute Summary
#magick_errors
Instance Method Summary
collapse
#absolute_dir, #after_destroy, #after_save, #assign, #create_magick_version_if_needed, #has_magick_errors?, #initialize, #just_uploaded?, #on_save, #options, #relative_dir, #temp_path, #transform_with_magick
Instance Method Details
#absolute_path(subdir = nil) ⇒ Object
154
155
156
|
# File 'lib/file_column.rb', line 154
def absolute_path(subdir=nil)
nil
end
|
#assign_temp(temp_path) ⇒ Object
163
164
165
166
167
168
|
# File 'lib/file_column.rb', line 163
def assign_temp(temp_path)
return self if temp_path.nil? or temp_path.empty?
temp = clone_as TempUploadedFile
temp.parse_temp_path temp_path
temp
end
|
#delete ⇒ Object
142
143
144
145
|
# File 'lib/file_column.rb', line 142
def delete
self
end
|
#relative_path(subdir = nil) ⇒ Object
159
160
161
|
# File 'lib/file_column.rb', line 159
def relative_path(subdir=nil)
nil
end
|
#upload(file) ⇒ Object
147
148
149
150
151
152
|
# File 'lib/file_column.rb', line 147
def upload(file)
temp = clone_as TempUploadedFile
temp.store_upload(file)
temp
end
|