From: Leslie Viljoen Date: 2005-11-07T06:28:58+09:00 Subject: Re: Namespace pollution in Rails Trans wrote: >This shoud be a lesson. > >Unless you are specifically creating a general purpose class or module >which can be required INDEPENDENTLY, for all the world to use in their >projects (for example a OrderHash), you should NOT load your classes >and modules into that space. > >T. > > > Yes, they are using Gems. I agree with what you are saying, in fact I think libraries that do this should be removed - and that is what they have done in response to my requests at Textdrive. Strangely, I installed the latest version of Nitro and Glue and both irb and the Rails console environments were inaffected. It must have been an older version of Glue, but it still beats me how this came about. Irb showed no pollution, only when running a Rails app did there suddenly appear a loaded Glue module. This is why I am so curious about it - how did Glue get itself loaded? I'd like to be able to circumvent such things in future, it is impossible to code around every possible class people dream up and Glue even modified the default String class!