Improve #success? methods
This commit is contained in:
parent
19add3f534
commit
a9c1c9f551
2 changed files with 2 additions and 6 deletions
|
@ -5,9 +5,7 @@ class ApiEntreprise::EntrepriseAdapter
|
|||
end
|
||||
|
||||
def success?
|
||||
data_source
|
||||
rescue
|
||||
false
|
||||
data_source.present?
|
||||
end
|
||||
|
||||
def to_params
|
||||
|
|
|
@ -5,9 +5,7 @@ class ApiEntreprise::EtablissementAdapter
|
|||
end
|
||||
|
||||
def success?
|
||||
data_source
|
||||
rescue
|
||||
false
|
||||
data_source.present?
|
||||
end
|
||||
|
||||
def to_params
|
||||
|
|
Loading…
Reference in a new issue