Method: Paperclip.options

Defined in:
lib/paperclip.rb

+ (Object) options

Provides configurability to Paperclip. The options available are:

  • 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.

  • use_exif_orientation: Whether to inspect EXIF data to determine an image's orientation. Defaults to true.



81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/paperclip.rb', line 81

def self.options
  @options ||= {
    :whiny => true,
    :image_magick_path => nil,
    :command_path => nil,
    :log => true,
    :log_command => true,
    :swallow_stderr => true,
    :content_type_mappings => {},
    :use_exif_orientation => true
  }
end

Comments