Skip to content

Commit

Permalink
[Fix #113] Document procedure to bypass background processing
Browse files Browse the repository at this point in the history
  • Loading branch information
lardawge committed Apr 6, 2013
1 parent c1fe9dd commit 4b39a7f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -118,6 +118,15 @@ If you need to process/store the upload immediately:
@user.process_<column>_upload = true
```

This must be set before you assign an upload:

```ruby
# In a controller
@user = User.new
@user.process_avatar_upload = true
@user.attributes = params[:user]
```

### Override worker
To overide the worker in cases where additional methods need to be called or you have app specific requirements, pass the worker class as the
second argument:
Expand Down

0 comments on commit 4b39a7f

Please sign in to comment.