Commit e1a5aaeb authored by Stan Hu's avatar Stan Hu

Add comment for Namespace#trial_active?

parent 181c43db
...@@ -287,6 +287,8 @@ module EE ...@@ -287,6 +287,8 @@ module EE
plan_eligible_for_trial? plan_eligible_for_trial?
end end
# Be sure to call this on root_ancestor since plans are only associated
# with the top-level namespace, not with subgroups.
def trial_active? def trial_active?
trial? && trial_ends_on.present? && trial_ends_on >= Date.today trial? && trial_ends_on.present? && trial_ends_on >= Date.today
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment