This project is archived and is in readonly mode.
reload! in script/console re-defines classes.
-
thedarkone
This is an intended behavoir.
reload!undefines all your constants, so they can be auto-required byActiveSupportnext time you use them. -
Vikrant Chaudhary
What advantage does reload! really have over typing exit and script/console again?
-
thedarkone
You get to keep your current IRB session and it is about 1000-times faster. You can also give rails-dev-boost a try (it modifies
ActiveSupportto only remove constants defined in the.rbfiles that have actually changed, so not everything gets nuked away).