lib/dato/upload/image.rb in dato-0.4.3 vs lib/dato/upload/image.rb in dato-0.5.0

- old
+ new

@@ -1,19 +1,8 @@ # frozen_string_literal: true require 'dato/upload/file' -require 'fastimage' module Dato module Upload - class Image < Dato::Upload::File - def format_resource(upload_request) - width, height = FastImage.size(file.path) - - super(upload_request).merge( - width: width, - height: height, - format: FastImage.type(file.path).to_s - ) - end - end + Image = Dato::Upload::File end end