On 8/29/07, Tekin Suleyman <[EMAIL PROTECTED]> wrote: > Is there a special trick to getting observers to work with engines?
You should be able to do this - the observers aren't processed until after plugins are loaded (check railties/lib/initializer.rb to be sure). What this *might* mean is that there's some error in either your model or your observer file that's causing a silent failure when the class is loaded. I saw this recently when a model depended on a file that wasn't required until the bottom of environment.rb - because the observer caused the model to be loaded before the rest of environment.rb had been processed, but the code which the model depended on hadn't been loaded yet, it would silently fall over and the problem looked like it was in the observer. Double check that everything your model needs is required before it's class definition - this might help. -- * J * ~ _______________________________________________ Engine-Users mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
