I’m curious how the “reload!” command is defined for script/console.
I’m guessing that is is alliased to Dispatcher.reset_application!
somewhere but I’m not finding it.
TIA,
Joe
I’m curious how the “reload!” command is defined for script/console.
I’m guessing that is is alliased to Dispatcher.reset_application!
somewhere but I’m not finding it.
TIA,
Joe
Never mind, I found it. in console_app.rb in railties\lib
#reloads the environment
def reload!
puts “Reloading…”
Dispatcher.reset_application!
end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs