13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/generators/umlaut/install_generator.rb', line 13
def config_cache_classes
guarded(:config_cache_classes) do
gsub_file("config/environments/development.rb", /^(\s*)config\.eager_load *\= *false\s*$/) do |match|
match =~ /^(\s*)/
"\#{$1}#\n\#{$1}# UMLAUT: Umlaut's use of threading makes Rails dev-mode class reloading tricky\n\#{$1}# It seems to be be mostly okay with cache_classes=false AND eager_load=true\n\#{$1}# but beware of editing files while background requests are running. \n\#{$1}config.eager_load = true\n EOS\n end\n end\nend\n"
|