Skip to content

Instantly share code, notes, and snippets.

@robustdj
Created December 15, 2010 06:15
Show Gist options
  • Save robustdj/741689 to your computer and use it in GitHub Desktop.
Save robustdj/741689 to your computer and use it in GitHub Desktop.
paperclip_defaults: &paperclip_defaults
styles:
original: "800x600>"
medium: "300x300#"
thumb: "100x100#"
path: ":rails_root/public/user_images/:id/:style/:filename"
convert_options:
all: "-strip"
defaults: &defaults
paperclip_storage_options:
<<: *paperclip_defaults
development:
<<: *defaults
test:
<<: *defaults
qa:
paperclip_storage_options:
<<: *paperclip_defaults
storage: "s3"
s3_credentials: "<%= RAILS_ROOT %>/config/s3.yml"
production:
paperclip_storage_options:
<<: *paperclip_defaults
storage: "s3"
s3_credentials: "<%= RAILS_ROOT %>/config/s3.yml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment