Give purpose to previously unused on_budget_investments scope

The "on_budget_investments" scope in Activity has never been used
anywhere in the codebase. It was introduced in commit d9d38482b3
("extends Activity to include Investment valuations") but no references
were ever added.

Instead of removing it, we make use of the scope by adding the missing
"Budget investments" filter to the admin Activity section. This aligns
it with the rest of the activity filters and gives the scope the purpose
it was originally intended for.
This commit is contained in:
taitus
2025-10-24 09:47:52 +02:00
parent 0332160627
commit a3a44f527b
4 changed files with 74 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
class Admin::ActivityController < Admin::BaseController
has_filters %w[all on_users on_proposals on_debates on_comments on_system_emails]
has_filters %w[all on_users on_proposals on_debates on_comments on_budget_investments on_system_emails]
def show
@activity = Activity.for_render.send(@current_filter)