Speeds up Rails development mode
Switch branches/tags
Nothing to show
Latest commit 4dd4168 Feb 12, 2012 @Roman2K README: remove dead links
Failed to load latest commit information.
.gitignore cleaned up directory structure of test constant source files Nov 23, 2008
LICENSE README, LICENSE: normalization Feb 12, 2012
README.md README: remove dead links Feb 12, 2012
TODO.txt added a TODO list with the first task Dec 27, 2008



Alternative to Josh Goebel's rails_dev_mode_performance plugin.


Why create a similar plugin? Because I couldn't get Josh Goebel's to work in my projects. His attempts to keep templates cached in a way that fails with recent versions of Rails. Also, removing the faulty chunk of code revealed another issue: it stats source files that may not exist, without trying to find their real path beforehand. That would be fixable is the code wasn't such a mess (no offense).

I needed better performance in development mode right away, so here is an alternative implementation.


script/plugin install <repo>

When the server is started in development mode, the special unloading mechanism takes over.

It can also be used in combination with RailsTestServing for even faster test runs by forcefully enabling it in test mode. To do so, add the following in config/environments/test.rb:

def config.soft_reload() true end if RailsTestServing.active?