9 lines
199 B
Ruby
9 lines
199 B
Ruby
class Exercice < ActiveRecord::Base
|
|
belongs_to :etablissement
|
|
|
|
validates :ca, presence: true, allow_blank: false, allow_nil: false
|
|
|
|
def date_fin_exercice
|
|
super || dateFinExercice
|
|
end
|
|
end
|