jstorimer/delayed_paperclip — Issue #49: 2.4.5.0 -> Only working with explicit 'include DelayedPaperclip::Glue'
Author: tommeier
Created: 2011-11-14 00:58:58+00:00
State: open

Hi,

Latest version (2.4.5.0) is working great with the latest Paperclip (2.4.5).

However, on load of a rake task or anything, with Rails 3.1 it is failing to run the Railtie for DelayedPaperclip .

For example :

```Ruby
class Image < ActiveRecord::Base
has_attached_file :image

process_in_background :image
end
```

```Bash
bundle exec rake paperclip:refresh CLASS=Image
rake aborted!
undefined method `process_in_background' for #
```

Then explicitly including DelayedPaperclip::Glue it works :

```Ruby
class Image < ActiveRecord::Base
include DelayedPaperclip::Glue

has_attached_file :image

process_in_background :image
end
```

Not sure why the Rails init commands aren't working yet...