Permalink
Browse files

Revert "Dev: remove wrap_parameters initializer if present"

- need this to be there to prove out integration works

This reverts commit 2a74f08.
  • Loading branch information...
1 parent 70a57aa commit 94f6bfa4d9a3c76c2f4abfc0b82748e86724a811 @dchelimsky dchelimsky committed May 17, 2011
Showing with 3 additions and 8 deletions.
  1. +3 −8 Rakefile
View
@@ -90,16 +90,11 @@ namespace :generate do
Dir.chdir("./tmp/example_app") do
sh "rm -rf test"
sh "ln -s #{bindir}"
- application_filename = "config/application.rb"
- application_file = File.read(application_filename)
- sh "rm #{application_filename}"
- puts "rewrite #{application_filename} with config.assets.enabled = false"
- File.open(application_filename, "w") do |f|
+ application_file = File.read("config/application.rb")
+ sh "rm config/application.rb"
+ File.open("config/application.rb","w") do |f|
f.write application_file.gsub("config.assets.enabled = true","config.assets.enabled = false")
end
- "config/initializers/wrap_parameters.rb".tap do |f|
- sh "rm #{f}" if test ?f, f
- end
end
end
end

0 comments on commit 94f6bfa

Please sign in to comment.