So, is current thought, then
ActiveSupport::Dependencies
def require_or_load(file_name, const_path = nil)
file_name = file_name.to_path if file_name.respond_to?(:to_path)
Kernel extension #not sure if this is necessary. vanilla ruby appears to be
okay with requiring a pathname
def require path
path = path.to_path if path.respond_to?(:to_path)
RUBYGEMS_ACTIVATION_MONITOR.enter
On Mon, Sep 30, 2013 at 2:53 PM, Xavier Noria <[email protected]> wrote:
> Well, I see there are relatively soon calls to File.expand_path (that
> checks #to_path). Maybe technically a few #to_s calls here and there could
> make it succeed, but relying on the fact that the implementation passes
> through expand_path at some point seems obscure to me.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ruby on Rails: Core" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/rubyonrails-core/ESAONvNYZL4/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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.
>
--
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.