Hello Experts, Is there way to disable DB connection to load rails, when i need i can connect manually? That too in production mode. Thanks, Bala --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
On Sat, Sep 27, 2008 at 23:07, Bala <mbbala@gmail.com> wrote:> > Is there way to disable DB connection to load rails, when i need i can > connect manually? > That too in production mode.Subclass the Rails::Initializer and override the `initialize_database` method: http://pastie.org/280933 For more questions like this, post to the rubyonrails-talk mailing list, since this is a usage question. Good luck, # Mislav --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks a lot Mislav, It really helped me a lot. So thankfull to you. Thanks, Bala 2008/9/29 Mislav Marohnić <mislav.marohnic@gmail.com>> On Sat, Sep 27, 2008 at 23:07, Bala <mbbala@gmail.com> wrote: > >> >> Is there way to disable DB connection to load rails, when i need i can >> connect manually? >> That too in production mode. > > > Subclass the Rails::Initializer and override the `initialize_database` > method: http://pastie.org/280933 > > For more questions like this, post to the rubyonrails-talk mailing list, > since this is a usage question. > > Good luck, > # Mislav > > > >-- "Smile while you cry." "There are only two tragedies in life: one is not getting what one wants, and the other is getting it." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---