lib/dm-paperclip.rb
# Provides configurability to Paperclip. There are a number of options available, such as:
# * whiny: Will raise an error if Paperclip cannot process thumbnails of
#   an uploaded image. Defaults to true.
# * log: Logs progress to the Rails log. Uses ActiveRecord's logger, so honors
#   log levels, etc. Defaults to true.
# * command_path: Defines the path at which to find the command line
#   programs if they are not visible to Rails the system's search path. Defaults to
#   nil, which uses the first executable found in the user's search path.
# * image_magick_path: Deprecated alias of command_path.
Provides configurability to Paperclip. There are a number of options available, such as:
whiny: Will raise an error if Paperclip cannot process thumbnails of
an uploaded image. Defaults to true.
log: Logs progress to the Rails log. Uses ActiveRecord's logger, so honors
log levels, etc. Defaults to true.
command_path: Defines the path at which to find the command line
programs if they are not visible to Rails the system's search path. Defaults to
nil, which uses the first executable found in the user's search path.
Provides configurability to Paperclip . There are a number of options available such as : whiny : Will raise an error if Paperclip cannot process thumbnails of an uploaded image . Defaults to true . log : Logs progress to the Rails log . Uses ActiveRecord ' s logger so honors log levels etc . Defaults to true . command_path : Defines the path at which to find the command line programs if they are not visible to Rails the system ' s search path . Defaults to nil which uses the first executable found in the user ' s search path .
def each_instance_with_attachment(klass, name)
      Object.const_get(klass).all.each do |instance|
        yield(instance) if instance.send(:"#{name}?")
      end
    end
def each_instance_with_attachment ( klass , name ) Object . const_get ( klass ) . all . each do | instance | yield ( instance ) if instance . send ( :" #{ name } ? " ) end end
Provides configurability to Paperclip.
Provides configurability to Paperclip .
klass
<not_specific>
name
<not_specific>