OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cc25ef
)
upload file's name support non-english words
author
Saito
<saitowu@gmail.com>
Mon, 16 Jan 2012 06:36:30 +0000
(14:36 +0800)
committer
Saito
<saitowu@gmail.com>
Mon, 16 Jan 2012 06:36:30 +0000
(14:36 +0800)
config/initializers/carrierwave.rb
[new file with mode: 0644]
patch
|
blob
diff --git a/config/initializers/carrierwave.rb
b/config/initializers/carrierwave.rb
new file mode 100644
(file)
index 0000000..
9bb62f6
--- /dev/null
+++ b/
config/initializers/carrierwave.rb
@@ -0,0
+1
@@
+CarrierWave::SanitizedFile.sanitize_regexp = /[^[:word:]\.\-\+]/