Connexion page is contextualized with procedure title and description when is access with link.

This commit is contained in:
Xavier J 2016-05-26 15:59:50 +02:00
parent 95bb773275
commit 4d1cb9ecfe
9 changed files with 115 additions and 21 deletions

View file

@ -25,6 +25,10 @@ class Procedure < ActiveRecord::Base
types_de_champ.order(:order_place)
end
def self.not_archived id
Procedure.where(archived: false).find(id)
end
def switch_types_de_champ index_of_first_element
return false if index_of_first_element < 0
types_de_champ_tmp = types_de_champ_ordered