From 8fe21d1d6c7c838122610381c3c3d230cf4486f1 Mon Sep 17 00:00:00 2001 From: pabois <pierreandre.boissinot@noesya.coop> Date: Mon, 13 Mar 2023 16:58:07 +0100 Subject: [PATCH] remove unused scopes --- .../admin/university/organizations/categories_controller.rb | 5 +---- .../admin/university/people/categories_controller.rb | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/controllers/admin/university/organizations/categories_controller.rb b/app/controllers/admin/university/organizations/categories_controller.rb index 9bd0187d9..5a01c2e5c 100644 --- a/app/controllers/admin/university/organizations/categories_controller.rb +++ b/app/controllers/admin/university/organizations/categories_controller.rb @@ -3,11 +3,8 @@ class Admin::University::Organizations::CategoriesController < Admin::University through: :current_university, through_association: :organizations_categories - - has_scope :for_search_term - def index - @categories = apply_scopes(@categories) + @categories = current_university.organizations_categories .ordered .page(params[:page]) breadcrumb diff --git a/app/controllers/admin/university/people/categories_controller.rb b/app/controllers/admin/university/people/categories_controller.rb index 411f51643..63e5d2379 100644 --- a/app/controllers/admin/university/people/categories_controller.rb +++ b/app/controllers/admin/university/people/categories_controller.rb @@ -3,11 +3,8 @@ class Admin::University::People::CategoriesController < Admin::University::Appli through: :current_university, through_association: :people_categories - - has_scope :for_search_term - def index - @categories = apply_scopes(@categories) + @categories = current_university.people_categories .ordered .page(params[:page]) breadcrumb -- GitLab