lib/fleximage/model.rb
# Use this method to include Fleximage functionality in your model.  It takes an 
# options hash with a single required key, :+image_directory+.  This key should 
# point to the directory you want your images stored on your server.  Or
# configure with a nice looking block.
Use this method to include Fleximage functionality in your model.  It takes an
options hash with a single required key, :+image_directory+.  This key should
point to the directory you want your images stored on your server.  Or
configure with a nice looking block.
Use this method to include Fleximage functionality in your model . It takes an options hash with a single required key : + image_directory + . This key should point to the directory you want your images stored on your server . Or configure with a nice looking block .
def image_file_exists(file)
        return false if file.nil?
        return false if (file.respond_to?(:size) ? file.size : file.stat.size) <= 0
        return false if !file.respond_to?(:read)
        true
      end
def image_file_exists ( file ) return false if file . nil? return false if ( file . respond_to? ( :size ) ? file . size : file . stat . size ) <= 0 return false if ! file . respond_to? ( :read ) true end
Use this method to include Fleximage functionality in your model.
Use this method to include Fleximage functionality in your model .
# File must be a valid object # Get the size of the file.  file.size works for form-uploaded images, file.stat.size works # for file object created by File.open('foo.jpg', 'rb').  It must have a size > 0. # object must respond to the read method to fetch its contents. # file validation passed, return true
file
<not_specific>