Guest User

Untitled

a guest
Jan 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. current_account.institutions.map do |i|
  2. funds = i.funds.only(:asset_ids)
  3. asset_sum = funds.map(&:asset_ids).flatten.uniq.count
  4. [ i.name, asset_sum ]
  5. end
Add Comment
Please, Sign In to add comment