From: Nobuyoshi Nakada Date: 2012-09-24T15:45:47+09:00 Subject: [ruby-core:47673] Re: [ruby-trunk - Bug #7046][Open] ERB#run and ERB#result are not safe for concurrent use Hi, At Sat, 22 Sep 2012 07:59:51 +0900, headius (Charles Nutter) wrote in [ruby-core:47638]: > I have provided a patch (https://gist.github.com/3764377) that is still very close to the toplevel binding, but instead uses the following logic each call to get a new, isolated binding in which to run the template: > > eval "proc{binding}.call", TOPLEVEL_BINDING `TOPLEVEL_BINDING.dup' would work too. -- Nobu Nakada