We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
number_to_human_size(Subdomain.all.pluck(:name).push('public').map{|name| Apartment::Tenant.switch(name) { ActiveStorage::Blob.all.pluck(:byte_size).sum } }.inject(0, :+))
Subdomain.all.pluck(:name).map{|name| Apartment::Tenant.switch(name){ {name: name, visits: Ahoy::Visit.all.size} } }.map{|h| h[:visits]}.inject(0, :+)