refactors storing of failed attempt [#277]

This commit is contained in:
rgarcia
2015-09-10 20:16:49 +02:00
parent 547b7afc6b
commit 664852ce4e

View File

@@ -48,13 +48,13 @@ class Verification::Residence
end
def store_failed_attempt
data = { user: user,
document_number: document_number,
document_type: document_type,
date_of_birth: date_of_birth,
postal_code: postal_code }
FailedCensusCall.create(data)
FailedCensusCall.create({
user: user,
document_number: document_number,
document_type: document_type,
date_of_birth: date_of_birth,
postal_code: postal_code
})
end
end