search for: webadminsandboxbase

Displaying 2 results from an estimated 2 matches for "webadminsandboxbase".

2006 Apr 18
2
Connecting to multiple databases with multiple database users
...not really DRY, but I also don''t know which implications on the number of open db connections the other 2 possibilities would have, if any. I even don''t know if this is working anyway. I will try it out after I got some sleep and let you all know! Here is the proposed code class WebadminSandboxBase < ActiveRecord::Base establish_connection "webadmin_sandbox_#{RAILS_ENV}" end class CustomerSandboxBase < ActiveRecord::Base establish_connection "customer_sandbox_#{RAILS_ENV}" end class WebadminEvaluationFigureInput < WebadminSandboxBase set_table_name "e...
2006 May 10
8
dynamic setting of username and password in database.yml
Hello I''ve now read a lot about application-level authentication in Rails, but I need to do database-level authentication. The reason is that my database needs to have the current_user (database current_user, not current_user defined in an ActiveRecord Model) set to execute triggers for automatically updating audit tables. So it is not enough to have a session check against a User