Procedure path can contain dashes and can be longer
This commit is contained in:
parent
c52b53ccc2
commit
887512c26c
10 changed files with 44 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue