Browse Source
Fix directory showing tags that have no currently eligible accounts (#9872)
master
Eugen Rochko
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
app/controllers/directories_controller.rb
|
|
@ -28,7 +28,7 @@ class DirectoriesController < ApplicationController |
|
|
|
end |
|
|
|
|
|
|
|
def set_tags |
|
|
|
@tags = Tag.discoverable.limit(30) |
|
|
|
@tags = Tag.discoverable.limit(30).reject { |tag| tag.cached_sample_accounts.empty? } |
|
|
|
end |
|
|
|
|
|
|
|
def set_accounts |
|
|
|