Skip to content

Commit

Permalink
Merge pull request jrgifford#177 from equivalent/patch-2
Browse files Browse the repository at this point in the history
update documentation - how to deal with processors not working
  • Loading branch information
morgoth committed Apr 29, 2016
2 parents a825895 + 7fe5916 commit e97562c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,43 @@ What if I’m not using images?
This library works no matter what kind of post-processing you are doing
with Paperclip.

Paperclip Post-processors are not working
-----------------------------------------

If you are using custom [post-processing processors](https://github.com/thoughtbot/paperclip#post-processing)
like this:

```ruby
# ...

has_attached_file :avatar, styles: { thumb: '100x100>' }, processors: [:rotator]
process_in_background :avatar

def rotate!
# ...
avatar.reprocess!
# ...
end

# ...
```

...you may encounter an issue where your post-processors are ignored
([more info](https://github.com/jrgifford/delayed_paperclip/issues/171)).
In order to avoid this use `reprocess_without_delay!`

```ruby
# ...

def rotate!
# ...
avatar.reprocess_without_delay!
# ...
end

# ...
```

Does it work with s3?
---------------------

Expand Down

0 comments on commit e97562c

Please sign in to comment.