Add documentation for new :partition option

This commit is contained in:
Eadz 2008-06-09 22:10:39 +12:00
Родитель e1c9c83ed7
Коммит 8a1e649170
1 изменённых файлов: 2 добавлений и 1 удалений

3
README
Просмотреть файл

@ -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.
@ -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