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 67fba7542c
commit 0f03b00bb3

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?