E
eggman2001
I've got something like:
@var = 'brown'
class Foo < ActiveRecord::Base
set_table_name @var
end
However, as the code is right now, I'm not able to access @var from
within the class definition. Can someone tell me how I can accomplish
this?
@var = 'brown'
class Foo < ActiveRecord::Base
set_table_name @var
end
However, as the code is right now, I'm not able to access @var from
within the class definition. Can someone tell me how I can accomplish
this?