coderrr
2009-Feb-18 20:50 UTC
Modifying AR::B#connection to accept a block and release connection
Anyone have issues with the change we are proposing in this ticket? http://rails.lighthouseapp.com/projects/8994/tickets/1752-added-using_connection-method-like-with_connection-but-sets-it-as-default-connection-while-inside-the-block Basically we want to change AR::B#connection to accept a block. If block_given? then we will release the connection after the block has completed. As Nick said this will allow more fine grained checkin/ checkout of connections in Rails'' internals. - steve --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---