app/models/concerns/memberships/base.rb in bullet_train-1.1.4 vs app/models/concerns/memberships/base.rb in bullet_train-1.1.5
- old
+ new
@@ -29,10 +29,10 @@
scope :current, -> { where("user_id IS NOT NULL") }
scope :tombstones, -> { includes(:invitation).where("user_id IS NULL AND invitations.id IS NULL").references(:invitation) }
# TODO Probably we can provide a way for gem packages to define these kinds of extensions.
if billing_enabled?
- scope :billable, -> { current }
+ scope :billable, -> { current_and_invited }
end
end
def name
full_name