Skip to content

Commit

Permalink
remove thread local podio object
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmarmon committed Jul 26, 2016
1 parent 59082df commit 2ada527
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The main way of using the Podio library is via a singleton client, which you set
Podio.setup(:api_key => 'YOUR_API_KEY', :api_secret => 'YOUR_API_SECRET')
```

This initializes a `Podio::Client` object and assigns it to a thread-local, which is used by all methods in this library.
This initializes a `Podio::Client` object which is used by all methods in this library.


Authentication
Expand Down
4 changes: 2 additions & 2 deletions lib/podio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def setup(options={})
end

def client
Thread.current[:podio_client]
@client
end

def client=(new_client)
Thread.current[:podio_client] = new_client
@client = new_client
end

def with_client
Expand Down

0 comments on commit 2ada527

Please sign in to comment.