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.
Information and Educational Technology
Kwantlen University College - 604-599-2120
“So powerful is the light of unity that it can illuminate the whole
earth.” --Bahá'u’lláh
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?