Class: FileColumn::RealUploadedFile
- Inherits:
-
BaseUploadedFile
- Object
- BaseUploadedFile
- FileColumn::RealUploadedFile
- Defined in:
- lib/file_column.rb
Overview
:nodoc:
Direct Known Subclasses
Constant Summary
- EXT_REGEXPS =
regular expressions to try for identifying extensions
[ /^(.+)\.([^.]+\.[^.]+)$/, # matches "something.tar.gz" /^(.+)\.([^.]+)$/ # matches "something.jpg" ]
Instance Attribute Summary
Attributes inherited from BaseUploadedFile
Instance Method Summary (collapse)
Methods inherited from BaseUploadedFile
#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
Constructor Details
This class inherits a constructor from FileColumn::BaseUploadedFile
Instance Method Details
- (Object) absolute_path(subdir = nil)
174 175 176 177 178 179 180 |
# File 'lib/file_column.rb', line 174 def absolute_path(subdir=nil) if subdir File.join(@dir, subdir, @filename) else File.join(@dir, @filename) end end |
- (Object) relative_path(subdir = nil)
182 183 184 185 186 187 188 |
# File 'lib/file_column.rb', line 182 def relative_path(subdir=nil) if subdir File.join(relative_path_prefix, subdir, @filename) else File.join(relative_path_prefix, @filename) end end |