1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

improved syntax

This commit is contained in:
Sylvain 2021-10-04 10:10:44 +02:00 committed by Sylvain
parent a9f431a6a2
commit 8b811a1b3e

View File

@ -14,7 +14,7 @@ class Subscriptions::Subscribe
new_sub = Subscription.create(
plan_id: subscription.plan_id,
statistic_profile_id: subscription.statistic_profile_id,
statistic_profile_id: subscription.statistic_profile_id
)
new_sub.expiration_date = new_expiration_date
if new_sub.save