Feature #3511

rb_path_to_class should call custom const_defined? methods

Added by Aaron Patterson over 5 years ago. Updated about 3 years ago.



It would be nice if rb_path_to_class called custom const_defined? methods. This would give marshaled objects a chance to locate and define classes when they are being unmarshalled.

I've attached a patch with a test that demonstrates the desired functionality and a (probably naive) implementation.

rb_path_to_class.patch Magnifier (1.67 KB) Aaron Patterson, 07/01/2010 07:00 AM


#1 Updated by Hiroshi Nakamura over 3 years ago

  • Description updated (diff)
  • Status changed from Open to Feedback

Aaron, is this hook extension still needed for your usecase? (assuming Rails?)

Not bad but it would affect performance...

#2 Updated by Yusuke Endoh about 3 years ago

  • Target version set to next minor

Also available in: Atom PDF