From f255d6e3ecd22a84d2ce2c9b571678550d73767f Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Thu, 8 Nov 2018 12:38:02 -0600 Subject: [PATCH] Simplify the child_campaign? code --- app/models/campaign.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/models/campaign.rb b/app/models/campaign.rb index dfce67e7..0f568f72 100644 --- a/app/models/campaign.rb +++ b/app/models/campaign.rb @@ -180,11 +180,7 @@ class Campaign < ActiveRecord::Base end def child_campaign? - if parent_campaign.present? - true - else - false - end + parent_campaign.present? end def parent_campaign?