[Rails] abstract_naming_convention (proposal for new class)

Alexey Verkhovsky alex at verk.info
Wed Jan 26 12:22:37 GMT 2005


Adelle Hartley wrote:

>I propose a new class, that I will call abstract_naming_convention.
>  
>
I have some experience of explaining to ActiveRecord a naming convention 
for tables, primary and foreign keys of a legacy database. Although it's 
not difficult to do with current AR, it required changing some behaviors 
of ActiveRecord::Base that were not part of a published interface. So, I 
second this proposal.

But let's go one step further and call it AbstractModel, a class that 
would (similar to ApplicationController) contain behaviors common for 
all model classes, _including_ the DB naming convention. In both Rails 
applications I wrote to date some such construct was needed.

-- 
Best regards,

Alexey Verkhovsky

Ruby Forum: http://ruby-forum.org        (moderator)
RForum:     http://rforum.andreas-s.net  (co-author)
Instiki:    http://instiki.org           (maintainer)



More information about the Rails mailing list