collectiveidea/delayed_job — pull request #374 by aderyabin (2012-04-04 10:01:05+00:00)
Title: Development mode

Very often in development process I don't use delayed_job for some reason. And I'm ready in development mode to wait some time while function in progress, for example sending tickets to zendesk or mail sending. Also it's more useful for debugging.

But in production mode I want to send this tasks to delayed_job.

In this case I should write something like this
```ruby
if Rails.env.production?
comment.delay.clone_to_zendesk
else
comment.clone_to_zendesk
end
```

I think it's not good. I suggest to fix it in config (development.rb for example)
```ruby
Delayed::DelayProxy.development = true
```
in this case ``` comment.delay.clone_to_zendesk ``` will be executed without delayed_job in development. And will work through delayed_job in production