summaryrefslogtreecommitdiff
path: root/lib/carrier_wave_string_file.rb
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2018-01-11 23:12:34 +0000
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2018-02-06 15:26:25 +0000
commitd2a77094ae4a44b63fbe22ca910e836cb336a729 (patch)
tree4c2a33b4ad440355202c8dc9d915957a04a78f44 /lib/carrier_wave_string_file.rb
parent321ef1d45b7fad9a73451b97fc55476c77118477 (diff)
downloadgitlab-ce-d2a77094ae4a44b63fbe22ca910e836cb336a729.tar.gz
File upload UI obeys LFS filters
Uses Lfs::FileModificationHandler to coordinate LFS detection, creation of LfsObject, etc Caveats: 1. This isn't used by the multi-file editor / Web IDE 2. This isn't used on rename. We'd need to be able to download LFS files and add them to the commit if they no longer match so not as simple. 3. We only check the root .gitattributes file, so this should be improved to correctly check for nested .gitattributes files in subfolders.
Diffstat (limited to 'lib/carrier_wave_string_file.rb')
-rw-r--r--lib/carrier_wave_string_file.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/carrier_wave_string_file.rb b/lib/carrier_wave_string_file.rb
new file mode 100644
index 00000000000..6c848902e4a
--- /dev/null
+++ b/lib/carrier_wave_string_file.rb
@@ -0,0 +1,5 @@
+class CarrierWaveStringFile < StringIO
+ def original_filename
+ ""
+ end
+end