Permalink
Browse files

remove secret token initializer in rails 3 projects so that

`rake rails:update` doesn't freeze
  • Loading branch information...
1 parent 8f773f5 commit d0900804338d646e727ee2ed4ed5aeba0b67cf0f @smtlaissezfaire committed Jun 17, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/garlic/target.rb
View
@@ -65,7 +65,12 @@ def install_rails
`ruby #{rails_repo.path}/railties/bin/rails #{path}`
end
end
- install_dependency(rails_repo, 'vendor/rails') { `rake rails:update` }
+
+ install_dependency(rails_repo, 'vendor/rails') do
+ # remove secret token so that rails 3 installer doesn't freeze
+ `rm -rf config/initializers/secret_token.rb`
+ `rake rails:update`
+ end
end
def install_dependency(repo, install_path = ".", options = {}, &block)

0 comments on commit d090080

Please sign in to comment.