Improve #success? methods

This commit is contained in:
gregoirenovel 2018-03-15 14:41:18 +01:00
parent 19add3f534
commit a9c1c9f551
2 changed files with 2 additions and 6 deletions

View file

@ -5,9 +5,7 @@ class ApiEntreprise::EntrepriseAdapter
end
def success?
data_source
rescue
false
data_source.present?
end
def to_params

View file

@ -5,9 +5,7 @@ class ApiEntreprise::EtablissementAdapter
end
def success?
data_source
rescue
false
data_source.present?
end
def to_params