From bd0da36d6362b58209354c878a76df954160a3fa Mon Sep 17 00:00:00 2001 From: Mackenzie Morgan Date: Tue, 17 Mar 2015 21:23:54 -0400 Subject: [PATCH] reverse the rejection_explanation logic to not use != --- app/models/crop.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/crop.rb b/app/models/crop.rb index e2d4c3fb0c..6bf902c4c5 100644 --- a/app/models/crop.rb +++ b/app/models/crop.rb @@ -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