Skip to content

Commit

Permalink
ruby 1.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
thewoolleyman committed Aug 30, 2009
1 parent d70773b commit 8861f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/project.rb
Expand Up @@ -404,8 +404,8 @@ def do_clean_checkout(how_often = :always)

def do_clean_checkout?
case @clean_checkout_when
when :always: true
when nil, :never: false
when :always then true
when nil, :never then false
else
timestamp_filename = File.join(self.path, 'last_clean_checkout_timestamp')
unless File.exist?(timestamp_filename)
Expand Down

0 comments on commit 8861f78

Please sign in to comment.