paperclip

https://github.com/thoughtbot/paperclip

Ruby

Easy file attachment management for ActiveRecord

Paperclip::Style#initialize

Creates a Style object. +name+ is the name of the attachment,
+definition+ is the style definition from has_attached_file, which
can be string, array or hash

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-initialize-for-pr


# Commit to git

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


# 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-initialize-for-pr

hub pull-request


# Celebrate!