paperclip

https://github.com/thoughtbot/paperclip

Ruby

Easy file attachment management for ActiveRecord

Paperclip::Interpolations.interpolate

Perform the actual interpolation. Takes the pattern to interpolate
and the arguments to pass, which are the attachment and style name.
You can pass a method name on your record as a symbol, which should turn
an interpolation pattern for Paperclip to use.

Source | Google | Stack overflow

Edit

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

cd paperclip

open lib/paperclip/interpolations.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Paperclip--Interpolations-interpolate-for-pr


# Commit to git

git add lib/paperclip/interpolations.rbgit commit -m "better docs for Paperclip::Interpolations.interpolate"


# 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--Interpolations-interpolate-for-pr

hub pull-request


# Celebrate!