From: Tony Arcieri Date: 2009-07-16T04:55:56+09:00 Subject: Re: require_all 1.0.0: A wonderfully simple way to load your --0016e642d9d445c6c9046ec3f1b3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, Jul 15, 2009 at 9:58 AM, Roger Pack wrote: > Hmm. I too wish that ruby core had something like > > require_relative 'lib/a.rb' > or require_all 'lib/*.rb' > or require_all 'lib' => require_all 'lib/*.rb' or require_all > 'lib/init.rb' > > Thoughts? > I really would like to see this in core for one reason: with a pure Ruby solution it's incredibly difficult if not impossible to play nice with ActiveSupport's dependencies.rb. The require_all gem contains some hacks specific to ActiveSupport to try to play nicely, but I've still run into cases where I have to adjust code to keep various mechanisms in ActiveSupport's dependency loader from freaking out. I am really curious how rails core plans to get the Merb and ActiveSupport approaches to loading code working nicely together, or for that matter, why Merb users using ActiveRecord as their ORM (and vicariously ActiveSupport) don't run into "is not missing constant" errors more frequently, especially in multithreaded programs. -- Tony Arcieri medioh.com --0016e642d9d445c6c9046ec3f1b3--