We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e620dcf commit 89c444bCopy full SHA for 89c444b
app/controllers/admin/users_controller.rb
@@ -1,5 +1,6 @@
1
class Admin::UsersController < AdminController
2
def index
3
+ downcase_params if params[:q].present?
4
@q = User.includes(:editor).ransack(params[:q])
5
@users = @q.result(distinct: true).page(params[:page])
6
end
@@ -51,4 +52,8 @@ def user_update_params
51
52
def provider_klass
53
Kernel.const_get("API#{namespace.classify}::Provider")
54
55
+
56
+ def downcase_params
57
+ params[:q][:email_or_authorization_requests_siret_or_authorization_requests_external_id_eq] = params[:q][:email_or_authorization_requests_siret_or_authorization_requests_external_id_eq].downcase if params[:q][:email_or_authorization_requests_siret_or_authorization_requests_external_id_eq].present?
58
+ end
59
0 commit comments