Colin Law wrote:
> I do exactly what you describe with no problems. Are you sure you have
> not just got a typo somewhere that your brain is refusing to see?
Always a possibility. I'll keep looking. But thanks for the verification
that it should work.
Other possible extenuating circumstances I realized might be worth
mentioning:
- this is a 1.2.6 legacy app
- PrivilegedUser is actually a subclass of an abstract class to
facilitate connecting to multiple databases w/in the same app. However,
this hasn't posed any problems anywhere else.
class CountyActiveRecord < ActiveRecord::Base
@@county_domain = Thread.current[:county_domain]
self.abstract_class = true
establish_connection("#{RAILS_ENV}_#{@@county_domain}".to_sym)
end
class PrivilegedUser < CountyActiveRecord
..... etc etc.....
end
-- gw
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---