[Backgroundrb-devel] BDRB, new version questions
Ivan.Manida at Sun.COM
Thu Dec 13 13:30:53 EST 2007
> On Wed, 2007-12-12 at 20:07 +0300, Ivan S. Manida wrote:
>> we are trying to use BDRB for background processing of long-running
>> reports, and have two issues - one is that worker does not see our
>> Report class from Rails, throws a:
>> `load': undefined class/module Report (ArgumentError)
hemant kumar wrote:
> Where is this Report class defined? is it a model or loaded from
> plugins? any code that you are using would be helpful.
> Technically however, you can put a explicit require of file that defines
> the class and see if it works.
It's a standard ruby model, just not one inherited from the
ActiveRecord::Base. I tried "require"'ing it explicitly but
then it complains about other models (ActiveRecord ones) used
in the report generation. Seems that bdrb is not picking up
models in "app/models" at all.
More information about the Backgroundrb-devel