Seems this mail did not make it to the list for some reason. It
contains my solution for the problem with login_engine without having
to load the whole Rails environment.
Begin forwarded message:
> From: G?nter Ladwig <gladwig at gmx.de>
> Date: 22. Juni 2006 23:51:18 MESZ
> To: backgroundrb-devel at rubyforge.org
> Subject: Re: [Backgroundrb-devel] Models and Backgroundrb
>
> Hi,
>
> I used this to get LoginEngine to work (add to the top of your
> worker):
>
> $: << "#{RAILS_ROOT}/vendor/plugins/engines/lib/engines"
> $: << "#{RAILS_ROOT}/vendor/plugins/login_engine/lib"
>
> This adds the login engine directories to the search path Ruby uses
> when loading require''d files.
>
> Worked for me :)
>
> G?nter
>
> On 22.06.2006, at 23:31, Charles Brian Quinn wrote:
>
>> Your model that you''re trying find on includes some libraries
that
>> backgroundrb doesn''t know about.
>>
>> Try including all of rails when loading the script/backgroundrb/
>> start -- was just posted by me and someone else recently on how to
>> load ALL of rails instead of just the ActiveRecord connection.
>>
>> If that solves your problem, you can either, a) keep it and take
>> the large memory hit for running backgroundrb with your full RAILS
>> env loaded up, or b) find out what libraries (the
>> authenticated_system.rb, including LogineEngine, etc.) that your
>> model that you''re performing the Find on is using, and load
those
>> up in your backgroundrb process instead (see archive for how to do
>> this, too) of the entire environment.
>>
>> Hope that helps!
>>
>> On 6/22/06, hemant <gethemant at gmail.com> wrote:
>> Hi Erza,
>>
>> I am using login engine in my code...and i get the error
>> "uninitialized constant LoginEngine and uninitialized constant
>> LoginEngine", when i try to do a find in the worker code!!!
>>
>> Why am i getting this error?
>>
>>
>>
>>
>> --
>> nothing much to talk
>>
>> _______________________________________________
>> Backgroundrb-devel mailing list
>> Backgroundrb-devel at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>>
>>
>>
>>
>> --
>> Charles Brian Quinn
>> www.seebq.com
>> _______________________________________________
>> Backgroundrb-devel mailing list
>> Backgroundrb-devel at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>