Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix rails_upgrade for rails 3.1 #13

Merged
merged 1 commit into from

2 participants

@cthiel

only define CLEAR, CYAN and WHITE if not defined already, fixes rails_upgrade on rails 3.1

@radar radar merged commit 21a1ea7 into rails:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 20, 2011
  1. @cthiel
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/tasks/rails_upgrade_tasks.rake
View
6 lib/tasks/rails_upgrade_tasks.rake
@@ -39,9 +39,9 @@ namespace :rails do
puts new_config
end
- CLEAR = "\e[0m"
- CYAN = "\e[36m"
- WHITE = "\e[37m"
+ CLEAR = "\e[0m" unless defined? CLEAR
+ CYAN = "\e[36m" unless defined? CYAN
+ WHITE = "\e[37m" unless defined? WHITE
desc "Backs up your likely modified files so you can run the Rails 3 generator on your app with little risk"
task :backup do
Something went wrong with that request. Please try again.