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
Dont complain about no place to save images if default image have been declared. 
 This allows models to render images that are not based on an uploaded image.
Squeegy (author)
Sat May 31 13:38:19 -0700 2008
commit  9b1d211b20a57df6bad04c272181182641071006
tree    d11a23475afaec58f12342e00ba0296b73f79c89
parent  fb328f2b8c710ca5bd2f84d01cd11ec81af69a55
...
142
143
144
145
 
146
147
148
...
142
143
144
 
145
146
147
148
0
@@ -142,7 +142,7 @@ module Fleximage
0
         image_directory options[:image_directory] if options[:image_directory]
0
         
0
         # Require the declaration of a master image storage directory
0
-        if !image_directory && !db_store?
0
+        if !image_directory && !db_store? && !default_image && !default_image_path
0
           raise "No place to put images!  Declare this via the :image_directory => 'path/to/directory' option\n"+
0
                 "Or add a database column named image_file_data for DB storage"
0
         end

Comments