Skip to content

Instantly share code, notes, and snippets.

@adzap
Created April 15, 2009 01:45
Show Gist options
  • Save adzap/95549 to your computer and use it in GitHub Desktop.
Save adzap/95549 to your computer and use it in GitHub Desktop.
# Any tasks you need class caching turned off for, just include this task as a dependency
#
# task :do_sumthin_tricky => [:disable_class_cache] do
# sumthin_tricky
# end
#
# Stick this file in your lib/tasks dir. You could also put the guts of it in your Rakefile to apply it to all rake tasks for your app.
task :disable_class_cache do
module Rails
class Configuration
def cache_classes; false; end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment