demarches-normaliennes/app/models/exercice.rb

10 lines
198 B
Ruby
Raw Normal View History

2018-03-06 13:44:29 +01:00
class Exercice < ApplicationRecord
belongs_to :etablissement
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
end