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:
parent
a9f431a6a2
commit
8b811a1b3e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user