demarches-normaliennes/app/models/exercice.rb
2018-03-06 17:18:44 +01:00

9 lines
198 B
Ruby

class Exercice < ApplicationRecord
belongs_to :etablissement
validates :ca, presence: true, allow_blank: false, allow_nil: false
def date_fin_exercice
super || dateFinExercice
end
end