Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
Change optional config values from empty string to nil
Browse files Browse the repository at this point in the history
Empty strings are truthy, causing default values from being set.
  • Loading branch information
dbryand committed May 15, 2013
1 parent d66e052 commit 9759acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ S3DirectUpload.config do |c|
c.access_key_id = "" # your access key id
c.secret_access_key = "" # your secret access key
c.bucket = "" # your bucket name
c.region = "" # region prefix of your bucket url (optional), eg. "s3-eu-west-1"
c.url = "" # S3 API endpoint (optional), eg. "https://#{c.bucket}.s3.amazonaws.com/"
c.region = nil # region prefix of your bucket url (optional), eg. "s3-eu-west-1"
c.url = nil # S3 API endpoint (optional), eg. "https://#{c.bucket}.s3.amazonaws.com/"
end
```

Expand Down

0 comments on commit 9759acb

Please sign in to comment.