lib/attached/attachment.rb in attached-0.4.2 vs lib/attached/attachment.rb in attached-0.4.3

- old
+ new

@@ -155,9 +155,10 @@ def assign(file, identifier = Identifier.generate) self.file = file if file + extension ||= file.extension if file.respond_to?(:extension) extension ||= File.extname(file.original_filename) if file.respond_to?(:original_filename) extension ||= File.extname(file.path) if file.respond_to?(:path) end @purge = [self.path, *self.styles.map { |style, options| self.path(style) }] if attached? \ No newline at end of file