Remove collection filtering where it's not needed

This commit is contained in:
Andy Smith
2025-08-28 12:22:48 -05:00
parent 5c42054004
commit 2036071ddd
6 changed files with 0 additions and 12 deletions
@@ -1,8 +1,6 @@
class Accounts::SettingsController < ApplicationController
include FilterScoped
enable_collection_filtering only: :show
def show
@account = Account.sole
@users = User.active
@@ -3,8 +3,6 @@ class CollectionsController < ApplicationController
include FilterScoped
enable_collection_filtering only: %i[ edit new ]
def new
@collection = Collection.new
end
@@ -1,8 +1,6 @@
class Notifications::SettingsController < ApplicationController
include FilterScoped
enable_collection_filtering only: :show
def show
@collections = Current.user.collections.alphabetically
end
@@ -1,8 +1,6 @@
class NotificationsController < ApplicationController
include FilterScoped
enable_collection_filtering only: :index
def index
@unread = Current.user.notifications.unread.ordered unless current_page_param
set_page_and_extract_portion_from Current.user.notifications.read.ordered
-2
View File
@@ -9,8 +9,6 @@ class UsersController < ApplicationController
before_action :set_filter, only: %i[ edit show ]
before_action :set_user_filtering, only: %i[ edit show]
enable_collection_filtering only: %i[ edit show ]
def new
@user = User.new
end
-2
View File
@@ -3,8 +3,6 @@ class WorkflowsController < ApplicationController
include FilterScoped
enable_collection_filtering only: %i[ new index ]
def index
@workflows = Workflow.all
end