A platform for community discussion. Free, open, simple.
DEV: Remove deprecated UsersController#modify_user_params method (#27198)
Ted Johansson078d363510ed
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rbindex c4b4d38bd02..79f13350a6d 100644--- a/app/controllers/users_controller.rb+++ b/app/controllers/users_controller.rb@@ -2130,8 +2130,6 @@ class UsersController < ApplicationControllerresult.merge!(params.permit(:active, :staged, :approved))end- deprecate_modify_user_params_method- result = modify_user_params(result)DiscoursePluginRegistry.apply_modifier(:users_controller_update_user_params,result,@@ -2140,23 +2138,6 @@ class UsersController < ApplicationController)end- # Plugins can use this to modify user parameters- def modify_user_params(attrs)- attrs- end-- def deprecate_modify_user_params_method- # only issue a deprecation warning if the method is overridden somewhere- if method(:modify_user_params).source_location[0] !=- "#{Rails.root}/app/controllers/users_controller.rb"- Discourse.deprecate(- "`UsersController#modify_user_params` method is deprecated. Please use the `users_controller_update_user_params` modifier instead.",- since: "3.1.0.beta4",- drop_from: "3.2.0",- )- end- end-def fail_with(key)render json: { success: false, message: I18n.t(key) }end