app/models/tenant_quota.rb
Use filter_map
instead. Open
Open
value - tenant.children.includes(:tenant_quotas).map do |c|
cq = c.tenant_quotas.send(name).take
cq.value if cq
end.compact.sum - used
- Create a ticketCreate a ticket
- Exclude checks
Use filter_map
instead. Open
Open
tenant.children.includes(:tenant_quotas).map do |c|
cq = c.tenant_quotas.send(name).take
cq.value if cq
end.compact.sum
- Create a ticketCreate a ticket
- Exclude checks