jstorimer/delayed_paperclip — Issue #55: If before_post_process filter returns false the resource_processing field is not updated 
Author: bastien
Created: 2012-01-10 16:25:19+00:00
State: open

I'm not sure wether this is a bug or by design, when the before_post_process filter returns false, the processing is halted but the resource_processing field is not updated.

I used to have this code

```ruby
before_post_process :image?
process_in_background :resource

def image?
resource_content_type =~ /image/ ? true : false
end
```

And after switching to delayed_paperclip 2.4.5.1 (and paperclip 2.4.5) I had to adapt my code to :

```ruby
before_post_process :image?
process_in_background :resource

def image?
true if resource_content_type =~ /image/
self.update_attribute(:resource_processing, false) # Had to add this line
false
end
```

Or is there a different way to come around this problem?