Remove collection filtering where it's not needed
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,8 +3,6 @@ class WorkflowsController < ApplicationController
|
||||
|
||||
include FilterScoped
|
||||
|
||||
enable_collection_filtering only: %i[ new index ]
|
||||
|
||||
def index
|
||||
@workflows = Workflow.all
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user