Individual: remove birthdate proxy
This commit is contained in:
parent
155ffcb4ba
commit
3c8d1f13b6
2 changed files with 0 additions and 11 deletions
|
@ -5,12 +5,4 @@ class Individual < ApplicationRecord
|
|||
validates :gender, presence: true, allow_nil: false, on: :update
|
||||
validates :nom, presence: true, allow_blank: false, allow_nil: false, on: :update
|
||||
validates :prenom, presence: true, allow_blank: false, allow_nil: false, on: :update
|
||||
|
||||
def birthdate
|
||||
second_birthdate
|
||||
end
|
||||
|
||||
def birthdate=(date)
|
||||
self.second_birthdate = date
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue