public
Description: Rails plugin for uploading images as resources, with support for resizing, text stamping, and other special effects.
Homepage: http://wiki.github.com/Squeegy/fleximage
Clone URL: git://github.com/Squeegy/fleximage.git
Fixed a typo that caused an exception of you deleted a record that had no 
associated image when using file system storage.
Squeegy (author)
Mon Jun 23 23:10:58 -0700 2008
commit  c0fdd7279dfc777bdb689188e1a27dcf44a2f660
tree    1829cd3abae9ca2930c73df7f1c7173b7584649b
parent  38e089712fbf1afaf7809b43923b76572ad9882e
...
382
383
384
385
 
386
387
388
...
382
383
384
 
385
386
387
388
0
@@ -382,7 +382,7 @@ module Fleximage
0
         if self.class.db_store?
0
           update_attribute :image_file_data, nil unless frozen?
0
         else
0
-          File.delete(file_path) && File.exists?(file_path)
0
+          File.delete(file_path) if File.exists?(file_path)
0
         end
0
         
0
         clear_magic_attributes

Comments