On 14/09/2007, at 4:14 AM, Peter wrote:

> At this stage, we need to solidify a convention for namespaces with
> models. It seems the functionality is halfway there and we need some
> sort of closure on the issue.

I think it's simply a matter of fixing the parts which don't work as  
expected, and then providing a small section of documention in  
ActiveRecord::Base about models within modules.

Do you know which parts are currently broken, or don't work as  
expected? AFAIK associations, STI and autoloading work just fine with  
namespaced models.

The only thing I can see as possibly confusing is the the current  
behaviour for table_name:

 >> module Security; end
=> nil
 >> class Security::User < ActiveRecord::Base; end
=> nil
 >> Security::User.table_name
=> "users"

It might be more sensible to have a table_name of "security_users",  
though it irks me that it's the same result as the table_name for a  
SecurityUser class.

-- tim


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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