0
0
Fork 0

Fix bug in relationships API introduced by #6482 (#6527)

It was merge when it needed to be deep_merge. And added some tests
This commit is contained in:
Eugen Rochko 2018-02-21 23:22:12 +01:00 committed by GitHub
parent 61ed133fea
commit 4bc625166e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 2 deletions

View file

@ -45,7 +45,7 @@ class AccountRelationshipsPresenter
maps_for_account = Rails.cache.read("relationship:#{@current_account_id}:#{account_id}")
if maps_for_account.is_a?(Hash)
@cached.merge!(maps_for_account)
@cached.deep_merge!(maps_for_account)
else
@uncached_account_ids << account_id
end