On Mon, Mar 3, 2014 at 12:57 PM, Xavier Noria <[email protected]> wrote:

> Just a remark about this comment:
>
>      "Load stdlib classes even though SimpleDelegator inherits from
> BasicObject."
>
> The purpose of that const_get is to load top-level constants (which
> belong to Object), regardless of whether they come from stdlib.
>

Good point. Fixed.

The reason the "defined?(super)" solution doesn't work is, I realized,
simply that the super call will call SimpleDelegator.const_missing instead
of Rails' mixed-in Module.const_missing.

Can't think of a great way around that (but several nasty ways). Will keep
thinking.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to