[rails3] Custom Processors are not automatically loaded #247
Comments
Hi Keith, We ran into the same issue, but instead of sticking our custom Paperclip processors in
(which keeps the processors in the "standard" paperclip location) It does indeed appear though that this is something that needs to be fixed properly in Paperclip itself. PS - based on our cursory investigation, this issue is caused by the Paperclip gem being loaded before the Rails object is properly configured... see the following snippet in the
|
Yes, your solution is certainly cleaner and agrees with the documentation as it stands now. Since (as I understand it) rails 3 loads gems as early as possible during app initialization maybe the loading code needs to be moved into application.rb permanently. It is more configuration but it could probably be reduced to a one-liner to call a class method in paperclip that loads the custom processors.
No time to submit a patch so I guess this is a cry for help. :-) |
Am also experiencing this problem. Wondering if the paperclip team has fixed this issue already? |
Has there been any progress on this issue? |
This has been fixed in [4e4f427]. Thank you :) |
The documentation states that custom processors that inherit from Paperclip::Processor will be loaded automatically if placed in lib/paperclip_processors.
In rails 3.0.0.beta4 this doesn't work. The custom processor file is loaded if placed in Rails.root/config/initializers directory, but maybe the documentation should be changed to reflect this.
The text was updated successfully, but these errors were encountered: