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:
parent
67fba7542c
commit
0f03b00bb3
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user