Commit 72c4e738 by jyurek

Doc and formatting tweaks.

git-svn-id: https://svn.thoughtbot.com/plugins/paperclip/trunk@224 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
parent 9290b0e4
......@@ -107,7 +107,7 @@ module Thoughtbot #:nodoc:
# the +path_prefix+ and +path+ parameters. The second is using Amazon's S3 service, via the AWS::S3 gem.
# When +storage+ is set to :s3, Paperclip will at :s3_credentials_file in its options for a path to a YAML
# file that will specify the access_key_id and secret_access_key for S3. If none is specified, it will look
# for a the same file at the default location of +RAILS_ROOT/config/s3.yml+. When using S3, the +url_prefix+
# for a the same file at the default location of RAILS_ROOT/config/s3.yml. When using S3, the +url_prefix+
# is the name of the bucket in which the files will be stored. Note that while the +url_prefix+ is still
# interpolated, S3 does not allow anything but alphanumerics and underscores, so it's a good practice to keep
# your interpolations to the +path+ parameter. Files are stored with default permissions of :public_read. You
......
module Thoughtbot
module Paperclip
module ClassMethods #:nodoc:
def has_attached_file_with_fs *attachment_names
has_attached_file_without_fs *attachment_names
module ClassMethods
def has_attached_file_with_filesystem *attachment_names
has_attached_file_without_filesystem *attachment_names
end
alias_method_chain :has_attached_file, :fs
alias_method_chain :has_attached_file, :filesystem
end
class Storage #:nodoc:
......
module Thoughtbot
module Paperclip
module ClassMethods #:nodoc:
module ClassMethods
def has_attached_file_with_s3 *attachment_names
attachments, options = has_attached_file_without_s3 *attachment_names
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment