paperclip

https://github.com/thoughtbot/paperclip

Ruby

Easy file attachment management for ActiveRecord

Paperclip.current_attachments_styles

Returns hash with styles for all classes using Paperclip.
Unfortunately current version does not work with lambda styles:(
  {
    :User => {:avatar => [:small, :big]},
    :Book => {
      :cover => [:thumb, :croppable]},
      :sample => [:thumb, :big]},
    }
  }

Source | Google | Stack overflow

Edit

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

cd paperclip

open lib/paperclip/missing_attachment_styles.rb

Contribute

# Make a new branch

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


# Commit to git

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


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

hub pull-request


# Celebrate!