I start a ruby on rails console. First I execute "require 'managers/
x_manager' then I do something with the loaded class. After changing
the source of the class it is not reloaded. How do I activate the
changes without restarting the console?
"reload!" only reloads controllers, models, routes and similar often-
changing stuff. It does not reload everything - it depends on the
directories and internal settings like 'load_paths' and
'load_once_paths'. For instance, plugin code is not reloaded.
Where is the source file you want reloaded? Try this:
module MyStuff
unloadable
# rest of my code ...
end
The "unloadable" method explicitly tells Dependencies that this module
is unloadable.