1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +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( new_sub = Subscription.create(
plan_id: subscription.plan_id, 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 new_sub.expiration_date = new_expiration_date
if new_sub.save if new_sub.save