Performance minor changes in CensusCaller and LocalCensus

This commit is contained in:
María Checa
2017-07-14 15:35:50 +02:00
parent 6a24288bed
commit 13409c2e35
2 changed files with 3 additions and 3 deletions

View File

@@ -16,9 +16,7 @@ class LocalCensus
end
def valid?
@body.valid?
rescue NoMethodError
false
@body.present? ? !@body.attributes.values.include?("" || nil) : false
end
def date_of_birth