[Fix #164] Make the organisme field mandatory

This commit is contained in:
gregoirenovel 2017-11-23 11:37:41 +01:00
parent d88b82eebf
commit 731e1b6787
6 changed files with 16 additions and 1 deletions

View file

@ -40,6 +40,7 @@ class Procedure < ActiveRecord::Base
validates :libelle, presence: true, allow_blank: false, allow_nil: false
validates :description, presence: true, allow_blank: false, allow_nil: false
validates :organisation, presence: true, allow_blank: false, allow_nil: false
def hide!
now = DateTime.now