Procedure path can contain dashes and can be longer

This commit is contained in:
Mathieu Magnin 2017-04-14 11:34:53 +02:00
parent c52b53ccc2
commit 887512c26c
10 changed files with 44 additions and 11 deletions

View file

@ -53,7 +53,7 @@ class Procedure < ActiveRecord::Base
end
def default_path
libelle.downcase.gsub(/[^a-z0-9\-_]/, "_").gsub(/_*$/, '').gsub(/_+/, '_')
libelle.parameterize.first(50)
end
def types_de_champ_ordered