2018-03-06 13:44:29 +01:00
|
|
|
class Exercice < ApplicationRecord
|
2015-11-16 11:23:29 +01:00
|
|
|
belongs_to :etablissement
|
2016-01-20 10:34:22 +01:00
|
|
|
|
|
|
|
validates :ca, presence: true, allow_blank: false, allow_nil: false
|
2018-02-21 16:28:11 +01:00
|
|
|
|
|
|
|
def date_fin_exercice
|
|
|
|
super || dateFinExercice
|
|
|
|
end
|
2015-11-16 11:23:29 +01:00
|
|
|
end
|