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.
9 lines
312 B
Ruby
9 lines
312 B
Ruby
class Admin::ActivityController < Admin::BaseController
|
|
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)
|
|
.order(created_at: :desc).page(params[:page])
|
|
end
|
|
end
|