> > ActiveRecord::Base.establish_connection Rails.env > I don't quite understand what do you mean here?
My problem is that code like the following results in ConnectionNotEstablished exception (though it worked in 3.1): model = Task.first old_con = ActiveRecord::Base.remove_connection model.any_attr_name # check no access to DB ActiveRecord::Base.establish_connection old_con > > -- > 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 [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-core?hl=en. > > -- Kirill (KIR) Maximov Software Engineer & Starter Twitter: http://twitter.com/maxkir Skype: maxkir http://kirblog.idetalk.com | http://checkvist.com | http://www.jetbrains.com/teamcity -- 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 [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-core?hl=en.
