supporter refactor

This commit is contained in:
Kyle Drake 2014-10-24 18:45:42 -07:00
parent e82e1b4631
commit 5235286d8a
6 changed files with 9 additions and 11 deletions

View file

@ -830,12 +830,10 @@ class Site < Sequel::Model
((total_used_space.to_f / maximum_space) * 100).round(1)
end
# This returns true even if they end their support plan.
def supporter?
!owner.values[:stripe_customer_id].nil?
plan_type != 'free'
end
# This will return false if they have ended their plan.
def ended_supporter?
owner.values[:plan_ended]
end