FEATURE: support for enabling all upload file types

BUGFIX: authorized extensions is now case insensitive
This commit is contained in:
Régis Hanol
2014-04-29 19:12:35 +02:00
parent 359d59242e
commit 4371374ba6
6 changed files with 70 additions and 23 deletions

View File

@ -31,7 +31,7 @@ class FileHelper
end
def self.images_regexp
@@images_regexp ||= /\.(#{images.to_a.join("|").gsub(".", "\.")})$/i
@@images_regexp ||= /\.(#{images.to_a.join("|")})$/i
end
end