lib/attached/attachment.rb in attached-0.3.9 vs lib/attached/attachment.rb in attached-0.4.0

- old
+ new

@@ -1,7 +1,5 @@ -require 'open-uri' - require 'guid' require 'attached/storage' require 'attached/storage/error' @@ -314,14 +312,10 @@ # Access the original file . def reprocess! - uri = URI.parse(self.url) - root = "#{Rails.root}/public" - - self.file ||= File.open("#{root}#{self.url}") unless uri.absolute? - self.file ||= open(uri) + self.file = self.storage.retrieve(self.path) process end \ No newline at end of file