search for: long_query

Displaying 1 result from an estimated 1 matches for "long_query".

Did you mean: cond_query
2007 Sep 26
0
activerecord multiple databases
...s DB1 < ActiveRecord::Base self.establish_connection(Project::DBCONFIG[''db1'']) end class DB2 < ActiveRecord::Base self.establish_connection(Project::DBCONFIG[''db2'']) end end module ClassMethods module SomeClassName def long_query(name) r = find_by_sql ["SELECT ...",name] r.first unless r.empty? end end module SomeOtherClass def long_query(number) r = find_by_sql ["SELECT ...",name] r.first unless r.empty? end end end end module DB1 class...