It takes one line in init.rb to accomplish this: Merb.push_path(:lib, Merb.root / :lib, '**/*.rb')
I think it should stay that way. -Ben On Sun, Nov 16, 2008 at 12:34 PM, Michael Klishin < [EMAIL PROTECTED]> wrote: > > I wonder what end users think about autoloading from lib directory in > the application. > > There are 2 opposite ideas on how it may work: > > 1. Lib is loaded before app. We have a patch for this but not sure if > it should be merged. > 2. lib is not loaded automatically, people can use > before_/after_app_loads to do exactly what they want. > > Some seem to prefer #2 though AFAIR Rails, for instance, does > autoloading from lib and thus some people may expect it. > > What do you think? > -- > MK > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
