Simplify the child_campaign? code
This commit is contained in:
parent
64db067e2c
commit
f255d6e3ec
1 changed files with 1 additions and 5 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue