environment initialize block - Kernel.load problems


I'm trying to load a file into my environment, so it can use the
instance variable "config", the block parameter within the initialize
call. I can' seem to get the file to load, so that it has access to
"config". I've tried:

Kernel.load File.join(RAILS_ROOT, 'lib', 'boot.rb', false)
load File.join(RAILS_ROOT, 'lib', 'boot.rb', false)

But the config variable is not available within the 'boot.rb' file.
What gives?


It's a local variable not an instance variable, so you wouldn't expect a file loaded like that to be able to see it.