app/uploaders/asset_uploader.rb in locomotive_cms-0.0.1.4 vs app/uploaders/asset_uploader.rb in locomotive_cms-0.0.2

- old
+ new

@@ -33,11 +33,11 @@ content_type = file.content_type == 'application/octet-stream' ? File.mime_type?(original_filename) : file.content_type self.class.content_types.each_pair do |type, rules| rules.each do |rule| case rule - when String then value = type if file.content_type == rule - when Regexp then value = type if (file.content_type =~ rule) == 0 + when String then value = type if content_type == rule + when Regexp then value = type if (content_type =~ rule) == 0 end end end model.content_type = value