zendesk/zendesk_api_client_rb — pull request #34 by rahimsiz (2012-08-01 20:22:21+00:00)
Title: The tickets with attachments cannot be saved

It happens because in ZendeskAPI::Attachment not present client getter method, there are only instance variable @client.
ZendeskAPI::Attachment#save calls ZendeskAPI::Upload with client=nil.

Example code:
```
zendesk_params = { :subject => "Test Ticket", :description => "This is a test", :submitter_id => ZENDESK_CLIENT.current_user.id, :priority => "normal"}
kk = ZendeskAPI::Ticket.new(ZENDESK_CLIENT, zendesk_params)
kk.uploads << '/Users/ramil/Code/1.pdf'
kk.save
```

It raise
```
NoMethodError: undefined method `connection' for nil:NilClass
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/actions.rb:23:in `save'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/actions.rb:96:in `orig_create'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/rescue.rb:26:in `send'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/rescue.rb:26:in `create'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/actions.rb:101:in `create!'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/resources/misc.rb:37:in `save'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/collection.rb:103:in `save'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/collection.rb:101:in `map!'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/collection.rb:101:in `save'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/actions.rb:46:in `save_associations'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/actions.rb:41:in `each'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/actions.rb:41:in `save_associations'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/actions.rb:21:in `orig_save'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/rescue.rb:26:in `send'
from /Users/ramil/Code/zendesk_api_client_rb/lib/zendesk_api/rescue.rb:26:in `save'
from (irb):4
```