Are you doing something like this ?:
class YourModel < ActiveRecord::Base
  establish_connection :db_config
end


On Jan 19, 4:19 am, Vitaliy Yanchuk <[email protected]> wrote:
> I have one abstract ActiveRecord::Base class that establishes connection
> to other db, and it does every time it is included, on every environment
> load. It starts to establish it at script/console for example.
>
> I need to move that establishing only when there is actual request per
> that model is made.
>
> --
> Posted viahttp://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.

Reply via email to