diff options
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/console_app.rb | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index b99cd374ad..24650fd674 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added reload! method to script/console to reload all models and others that include Reloadable without quitting the console #4056 [esad@esse.at] + * Added that rake rails:freeze:edge will now just export all the contents of the frameworks instead of just lib, so stuff like rails:update:scripts, rails:update:javascripts, and script/server on lighttpd still just works #4047 [DHH] * Added fix for upload problems with lighttpd from Safari/IE to config/lighttpd.conf #3999 [thijs@fngtps.com] 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 |