duree abo
This commit is contained in:
parent
4b05510feb
commit
ad0d98e2d5
@ -6,11 +6,11 @@ class Public::AbonnementsController < ApplicationController
|
||||
layout "public"
|
||||
|
||||
def new
|
||||
@abonnement = current_customer.abonnements.new(:price => 300.0, :start_at => Time.now, :end_at => (Time.now+13.months).end_of_day, :slug => "negos-principal")
|
||||
@abonnement = current_customer.abonnements.new(:price => 300.0, :start_at => Time.now, :end_at => (Time.now+14.months).end_of_day, :slug => "negos-principal")
|
||||
end
|
||||
|
||||
def create
|
||||
@abonnement = current_customer.abonnements.new(:price => 300.0, :start_at => Time.now, :end_at => (Time.now+13.months).end_of_day, :slug => "negos-principal")
|
||||
@abonnement = current_customer.abonnements.new(:price => 300.0, :start_at => Time.now, :end_at => (Time.now+14.months).end_of_day, :slug => "negos-principal")
|
||||
|
||||
if @abonnement.save
|
||||
session[:abonnement_id] = @abonnement
|
||||
|
Loading…
x
Reference in New Issue
Block a user