Method: Paperclip::Storage::S3#bucket_name

Defined in:
lib/paperclip/storage/s3.rb

#bucket_nameObject



227
228
229
230
231
# File 'lib/paperclip/storage/s3.rb', line 227

def bucket_name
  @bucket = @options[:bucket] || s3_credentials[:bucket]
  @bucket = @bucket.call(self) if @bucket.respond_to?(:call)
  @bucket or raise ArgumentError, "missing required :bucket option"
end