proc extension problems

Hi guys,

has anyone had problems with this bit of code: https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/proc.rb ?

if i run my application for long enough time i start getting errors like this:

RuntimeError: symbol table overflow (symbol __bind_1328993330_18…)

apparently it’s because symbols are never GCed and rails generates one every time this proc extension is used because method names are implicitly converted to symbols

Best Regards,

MM

This seems like a known problem with ruby.

I found this old discussion of the issue back from 2008.

http://www.ruby-forum.com/topic/173699

-Sky

yeah, i saw that. i actually found why exactly this problem happens - new symbol is generated every time a named scope is called which was defined on ActiveRecord::Base