From: nrolland Date: 2006-12-03T01:30:08+09:00 Subject: On Modules and require in general / on ActiveSupport in particular I dont get how : -> I require_gem ActiveSupport and it's not loading any ActiveSupport module -> I require_gem Rails and it's loading ActiveSupport module..... Any clue appreciated. Here is a transcript of my irb session #initial state require 'rubygems' => true a = Module.constant # I load a gem, the Modules gets loaded require_gem 'needle' => true b = Module.constant b - a => ["Queue", "Needle", "Mutex", "ScanError", "Logger", "StringScanner", "SizedQueue", "Monitor", "MonitorMixin", "ConditionVariable"] # I load ActiveSupport, nothing gets loaded !!!!! require_gem 'activesupport' => true c = Module.constant c -b => [] # I load Rails, ActiveSupport is loaded. where is th magic going on ? require_gem 'rails' =>true d = Module.constant (d - c).find_all { |t| t.downcase.include?("active")} => ["ActiveSupport", "ActiveRecord"]