Skip to content

Commit

Permalink
Refactor user_owners method in AuditController and update related view
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jan 18, 2024
1 parent 3a564ad commit c37dd0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/audit_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def index
end

def user_owners
@collectives = Collective.with_user_owner.with_transactions.order(transactions_count: :desc)
@collectives = Collective.with_user_owner.order(transactions_count: :desc)
end

def no_projects
Expand Down
2 changes: 1 addition & 1 deletion app/views/audit/user_owners.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<p>
<i>
<small>
Displaying <%= pluralize @collectives.length, 'collective' %>, excluding collectives with no transactions, owned by a user instead of an organization.
Displaying <%= pluralize @collectives.length, 'collective' %>, owned by a user instead of an organization.
</small>
</i>
</p>
Expand Down

0 comments on commit c37dd0d

Please sign in to comment.