Created
April 15, 2009 01:45
-
-
Save adzap/95549 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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