zendesk/zendesk_api_client_rb — pull request #42 by rymai (2012-08-28 11:28:31+00:00)
Title: Fix an issue that was preventing creation of ticket with attachments when invoked from a rake task

Hi,

Using Delayed::Job, jobs are processed from inside the `rake jobs:work`
Rake task. The issue is that the `#file` was somehow "intercepted" by
Rake which returned a `Rake::TaskFile` instead of `attributes[:file]`!

Thanks!

FYI, Rake was issuing this warning:

```
WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method ZendeskAPI::Attachment#file called at ~/my_project/vendor/cache/zendesk_api_client_rb-4e3cd163fbd9/lib/zendesk_api/resources/misc.rb:38:in `save'
```