mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-11 05:54:15 +01:00
remove useless method
This commit is contained in:
parent
b46ee9177c
commit
fa64fd7a2e
@ -142,18 +142,6 @@ class Subscription < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def update_payment
|
|
||||||
if stp_subscription_id.present?
|
|
||||||
stp_subscription = stripe_subscription
|
|
||||||
stp_subscription.plan = plan.stp_plan_id
|
|
||||||
stp_subscription.prorate = false
|
|
||||||
stp_subscription.save
|
|
||||||
else
|
|
||||||
# TODO: implement stripe payment if member update subscription
|
|
||||||
# must have a card
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def notify_member_subscribed_plan
|
def notify_member_subscribed_plan
|
||||||
NotificationCenter.call type: 'notify_member_subscribed_plan',
|
NotificationCenter.call type: 'notify_member_subscribed_plan',
|
||||||
receiver: user,
|
receiver: user,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user