Skip to content

Commit

Permalink
reverse the rejection_explanation logic to not use !=
Browse files Browse the repository at this point in the history
  • Loading branch information
maco committed Mar 18, 2015
1 parent 6dedf1b commit bd0da36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/crop.rb
Expand Up @@ -300,10 +300,10 @@ def add_alternate_names_from_csv(alternate_names)
end

def rejection_explanation
if reason_for_rejection != "other"
return reason_for_rejection
else
if reason_for_rejection == "other"
return rejection_notes
else
return reason_for_rejection
end
end

Expand Down

0 comments on commit bd0da36

Please sign in to comment.