lib/locomotive/carrierwave/asset.rb in locomotive_cms-2.4.1 vs lib/locomotive/carrierwave/asset.rb in locomotive_cms-2.5.0.rc1
- old
+ new
@@ -55,13 +55,9 @@
model.size = file.size
end
def set_width_and_height
if model.image?
- conf = Dragonfly.app.configuration
- if conf[:identify_command] == conf[:convert_command]
- Rails.logger.warn "WARNING: Old Dragonfly config detected, image uploads might be broken. Use 'rails g locomotive:install' to get the latest configuration files."
- end
dragonfly_img = Dragonfly.app.fetch_file(current_path)
model.width, model.height = dragonfly_img.width, dragonfly_img.height
end
end