Removed downcase method from theme asset creation. Causes issues when dealing with files that may have uppercase filenames, such as fonts

This commit is contained in:
karlbright 2011-03-28 14:15:12 +08:00
parent 7b30c34a9b
commit 30eed79f2b

View File

@ -113,7 +113,7 @@ class ThemeAsset
self.folder = self.content_type.to_s.pluralize if self.folder.blank?
# no accents, no spaces, no leading and ending trails
self.folder = ActiveSupport::Inflector.transliterate(self.folder).gsub(/(\s)+/, '_').gsub(/^\//, '').gsub(/\/$/, '').downcase
self.folder = ActiveSupport::Inflector.transliterate(self.folder).gsub(/(\s)+/, '_').gsub(/^\//, '').gsub(/\/$/, '')
# folder should begin by a root folder
if (self.folder =~ /^(stylesheets|javascripts|images|medias|fonts)/).nil?