Skip to content

Commit

Permalink
remove secret token initializer in rails 3 projects so that
Browse files Browse the repository at this point in the history
`rake rails:update` doesn't freeze
  • Loading branch information
smtlaissezfaire committed Jun 17, 2010
1 parent 8f773f5 commit d090080
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/garlic/target.rb
Expand Up @@ -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)
Expand Down

0 comments on commit d090080

Please sign in to comment.