Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Francis Hwang
RE: Different table name for a DomainObject [ reply ]  
2003-09-04 17:51
Dmitry,

Just override DomainObject.tableName.

class News < DomainObject
def News.tableName
"news_data"
end
end

By: Dima Sabanin
Different table name for a DomainObject [ reply ]  
2003-09-03 15:20
How could i set $(subj)?
I want to have domain object News, and i want it to be stored in news_data, not in newses. What is the clear way to do that?