2015-08-10 11:05:06 +02:00
|
|
|
class Etablissement < ActiveRecord::Base
|
|
|
|
belongs_to :dossier
|
|
|
|
belongs_to :entreprise
|
2015-11-16 11:23:29 +01:00
|
|
|
|
|
|
|
has_many :exercices
|
2016-01-06 15:48:06 +01:00
|
|
|
|
|
|
|
def geo_adresse
|
|
|
|
numero_voie.to_s << ' ' << type_voie.to_s << ' ' << nom_voie.to_s << ' ' << complement_adresse.to_s << ' ' << code_postal.to_s << ' ' << localite.to_s
|
|
|
|
end
|
2015-08-10 11:05:06 +02:00
|
|
|
end
|