Sha256: 9a3a94e268c7f5f9e9d4d324db02f31204cf86522729722b6a1d7b44e95be7c3
Contents?: true
Size: 621 Bytes
Versions: 34
Compression:
Stored size: 621 Bytes
Contents
module FileColumn # This bit of code allows you to pass regular old files to # file_column. file_column depends on a few extra methods that the # CGI uploaded file class adds. We will add the equivalent methods # to file objects if necessary by extending them with this module. This # avoids opening up the standard File class which might result in # naming conflicts. module FileCompat # :nodoc: def original_filename File.basename(path) end def size File.size(path) end def local_path path end def content_type nil end end end
Version data entries
34 entries across 34 versions & 6 rubygems