lib/paperclip.rb in paperclip-2.2.0 vs lib/paperclip.rb in paperclip-2.2.1

- old
+ new

@@ -41,24 +41,27 @@ # The base module that gets included in ActiveRecord::Base. See the # documentation for Paperclip::ClassMethods for more useful information. module Paperclip - VERSION = "2.2.0" + VERSION = "2.2.1" class << self # Provides configurability to Paperclip. There are a number of options available, such as: # * whiny_thumbnails: 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. def options @options ||= { :whiny_thumbnails => true, :image_magick_path => nil, - :command_path => nil + :command_path => nil, + :log => true } end def path_for_command command #:nodoc: if options[:image_magick_path]