paperclip

https://github.com/thoughtbot/paperclip

Ruby

Easy file attachment management for ActiveRecord

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

Source | Google | Stack overflow

Edit

git clone [email protected]:thoughtbot/paperclip.git

cd paperclip

open lib/paperclip.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Paperclip-options-for-pr


# Commit to git

git add lib/paperclip.rbgit commit -m "better docs for Paperclip.options"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Paperclip-options-for-pr

hub pull-request


# Celebrate!