diff --git a/app/models/officing/residence.rb b/app/models/officing/residence.rb index 3f412dc41..3f5b184ba 100644 --- a/app/models/officing/residence.rb +++ b/app/models/officing/residence.rb @@ -4,7 +4,7 @@ class Officing::Residence attr_accessor :user, :officer, :document_number, :document_type, :year_of_birth - before_validation :call_census_api + before_validation :retrieve_census_data validates :document_number, presence: true validates :document_type, presence: true @@ -101,7 +101,7 @@ class Officing::Residence private - def call_census_api + def retrieve_census_data @census_api_response = CensusCaller.new.call(document_type, document_number) end