Skip to content

Commit

Permalink
Add documentation for new :partition option
Browse files Browse the repository at this point in the history
  • Loading branch information
eadz committed Jun 9, 2008
1 parent e1c9c83 commit 8a1e649
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ has_attachment(options = {})
:path_prefix # path to store the uploaded files.
# Uses public/#{table_name} by default for the filesystem, and just #{table_name} for the S3 backend.
# Setting this sets the :storage to :file_system.
:partition # Partiton files in directories like /0000/0001/image.jpg. Default is true.
:storage # Specifies the storage system to use..
# Defaults to :db_file. Options are :file_system, :db_file, and :s3.
:processor # Sets the image processor to use for resizing of the attached image.
Expand All @@ -60,7 +61,7 @@ has_attachment(options = {})
has_attachment :thumbnails => { :thumb => [50, 50], :geometry => 'x50' }
has_attachment :storage => :file_system, :path_prefix => 'public/files'
has_attachment :storage => :file_system, :path_prefix => 'public/files',
:content_type => :image, :resize_to => [50,50]
:content_type => :image, :resize_to => [50,50], :partition => false
has_attachment :storage => :file_system, :path_prefix => 'public/files',
:thumbnails => { :thumb => [50, 50], :geometry => 'x50' }
has_attachment :storage => :s3
Expand Down

0 comments on commit 8a1e649

Please sign in to comment.