lib/attached/storage/aws.rb in attached-0.3.1 vs lib/attached/storage/aws.rb in attached-0.3.2
- old
+ new
@@ -32,9 +32,11 @@
@permissions = { :public => true }
@bucket = credentials[:bucket] || credentials['bucket']
@access_key_id = credentials[:access_key_id] || credentials['access_key_id']
@secret_access_key = credentials[:secret_access_key] || credentials['secret_access_key']
+
+ raise "'bucket' must be specified if using 'aws' for storage" unless @bucket
end
# Access the host (e.g. bucket.s3.amazonaws.com) for a storage service.
#
\ No newline at end of file