diff --git a/app/controllers/api/v2_alpha/notifications_controller.rb b/app/controllers/api/v2_alpha/notifications_controller.rb index 19d3ac9018..5cd405a049 100644 --- a/app/controllers/api/v2_alpha/notifications_controller.rb +++ b/app/controllers/api/v2_alpha/notifications_controller.rb @@ -82,10 +82,15 @@ class Api::V2Alpha::NotificationsController < Api::BaseController end def browserable_params - params.permit(:include_filtered, types: [], exclude_types: []) + params + .slice(:include_filtered, :types, :exclude_types) + .permit(:include_filtered, types: [], exclude_types: []) end def pagination_params(core_params) - params.slice(:limit, :types, :exclude_types, :include_filtered).permit(:limit, :include_filtered, types: [], exclude_types: []).merge(core_params) + params + .slice(:limit, :types, :exclude_types, :include_filtered) + .permit(:limit, :include_filtered, types: [], exclude_types: []) + .merge(core_params) end end