[Nitro] Part.require expected behaviour

George Moschovitis george.moschovitis at gmail.com
Wed Nov 28 03:18:33 EST 2007


Please send the patch!

-g.

On Nov 28, 2007 6:58 AM, Arne Brasseur <arne at arnebrasseur.net> wrote:

> Hi devs,
>
> Part.require("part_name") currently does a
> Kernel.require("./part/part_name"). The consequence is that only parts
> in the actual application directory can be loaded with Part.require. If
> they're somewhere else in the load path you have to (Kernel.)require
> them yourself.
>
> This also means Part.require "admin" doesn't work, and neither will it
> work for parts in gems etc.
>
> I changed this for myself to do Kernel.require("part/part_name") and I
> was going to send a patch but I just wanted to check if this is perhaps
> deliberate. What's the expected behaviour of Part.require?
>
> (ab)
>
> --
> Arne Brasseur
> http://www.arnebrasseur.net
> http://www.zhongwiki.com
> http://www.bankske.org
> arne at arnebrasseur.net
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>



-- 
http://me.gr
http://joy.gr
http://cull.gr
http://nitroproject.org
http://phidz.com
http://joyerz.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20071128/6b354574/attachment.html 


More information about the Nitro-general mailing list