Change Ruby on Rails' reserved words?

Hi,

One of my database tables has to have the same name as a reserved word
in Ruby on Rails. Is there a way to change the name of a Ruby on Rails
reserved word by overloading it or by some other means? I really do
not want to change my table name. Thank you.

-Nick J. Fessel
http://www.nickfessel.com

nfessel wrote:

Hi,

One of my database tables has to have the same name as a reserved word
in Ruby on Rails. Is there a way to change the name of a Ruby on Rails
reserved word by overloading it or by some other means? I really do
not want to change my table name. Thank you.

-Nick J. Fessel
http://www.nickfessel.com

Why not just change the name of your model? E.g.:

class NotReservedWord < ActiveRecord::Base
set_table_name “reserved_word”
end


Michael W.

Excellent. I didn’t know about set_table_name. Thank you Michael.