I believe you can set the observers using the classes itself:

config.active_record.observers = [SomeNamespace::SomeObserver]

I'm not 100% sure though ;)

On May 3, 2:27 pm, Andriy Tyurnikov <[EMAIL PROTECTED]>
wrote:
> I am sorry, that I am not yet able to commit to framework, but while  
> you interested in improvement of namespace support in rails - here  
> some notes, that you may find useful:
>
> 1) Invoking to_xml on namespaced model will produce bad XML, bcoz '/'  
> symbol will used as namespace separator, and as you know this symbol  
> is very special for XML ;)
>
> 2) It looks like observers can not be namespaced, when defined by  
> symbols
> config.active_record.observers = :somenamespace_someclass_observer    
> # this will fail
> perhaps there are another ways to set namespaced observers, not by  
> symbols, but those ways are not documented well.
>
>
>
> > While working on a big project (>100 models) it was necessary to use
> > namespace to store the models and surprisingly it wasn't hard at all.
> > Looks like Rails is (almost) supporting full model namespaces out-of-
> > the-box. :)
>
> God bless Core team ;)
>
> Regards,
> Andriy Tyurnikov
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to