Simplify the child_campaign? code

This commit is contained in:
Eric Schultz 2018-11-08 12:38:02 -06:00
parent 64db067e2c
commit f255d6e3ec

View file

@ -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?