diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/console_app.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/lib/console_app.rb b/railties/lib/console_app.rb index 6e30b0ef30..d03cdd352a 100644 --- a/railties/lib/console_app.rb +++ b/railties/lib/console_app.rb @@ -22,4 +22,10 @@ def new_session session = ActionController::Integration::Session.new yield session if block_given? session +end + +#reloads the environment +def reload! + puts "Reloading..." + Dispatcher.reset_application! end
\ No newline at end of file |