paperclip

https://github.com/thoughtbot/paperclip

Ruby

Easy file attachment management for ActiveRecord

Paperclip::Style#processors

retrieves from the attachment the processors defined in the has_attached_file call
(which method (in the attachment) will call any supplied procs)
There is an important change of interface here: a style rule can set its own processors
by default we behave as before, though.
if a proc has been supplied, we call it here

Source | Google | Stack overflow

Edit

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

cd paperclip

open lib/paperclip/style.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Paperclip--Style-processors-for-pr


# Commit to git

git add lib/paperclip/style.rbgit commit -m "better docs for Paperclip::Style#processors"


# 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--Style-processors-for-pr

hub pull-request


# Celebrate!