Displaying 1 result from an estimated 1 matches for "theothert".
Did you mean:
theother
2007 Sep 26
0
activerecord multiple databases
...irst unless r.empty?
end
end
end
end
module DB1
class SomeClassName < Project::ConnectionFactory::DB1
set_table_name "thetable"
extend Project::ClassMethods::SomeClassName
end
class SomeOtherClass < Project::ConnectionFactory::DB1
set_table_name "theothertable"
extend Project::ClassMethods::SomeOtherClass
end
end
module DB2
class SomeClassName < Project::ConnectionFactory::DB2
set_table_name "thetable"
extend Project::ClassMethods::SomeClassName
end
class SomeOtherClass < Project::ConnectionFactory::DB2
s...