This commit is contained in:
Nicolas Bally 2020-07-01 16:15:17 +02:00
parent 44f57de50e
commit 7be584f445
3 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,8 @@ class MOdrVirement < ApplicationRecord
before_create { generate_token() }
def generate_token()
begin
self[:token] = SecureRandom.urlsafe_base64

View File

@ -62,7 +62,7 @@
</CdtrAgt>
<Cdtr>
<Nm>MaMotoSurCircuit</Nm>
<Nm><%= m_odr_virement.m_odr_prime.p_customer.show_name.strip %></Nm>
</Cdtr>

View File

@ -1,5 +1,8 @@
Rails.application.routes.draw do
get "/122-journees.html" => redirect("/fr/journees-de-roulage.html")
get "/USER_CREATION/1/104--36-mon-compte.html" => redirect("/fr/mon-compte.html")
get "/:lang/mon-compte.html" => "public/my_account#index", :as => :public_my_account