Feature #3511

rb_path_to_class should call custom const_defined? methods

Added by Aaron Patterson almost 4 years ago. Updated over 1 year ago.

Status:Feedback
Priority:Normal
Assignee:-
Category:-
Target version:next minor

Description

=begin
It would be nice if rbpathtoclass called custom constdefined? 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.
=end

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

History

#1 Updated by Hiroshi Nakamura about 2 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 over 1 year ago

  • Target version set to next minor

Also available in: Atom PDF