demarches-normaliennes/app/models/exercice.rb

10 lines
199 B
Ruby
Raw Normal View History

class Exercice < ActiveRecord::Base
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