Fix rubocop warnings

This commit is contained in:
Christophe Bliard
2026-05-26 16:42:57 +02:00
parent 4352424e7d
commit 193ee7c00d
@@ -13,12 +13,12 @@ module LdapGroups
layout "admin"
menu_item :plugin_ldap_groups
def show; end
def new
@filter = SynchronizedFilter.new
end
def show; end
def end; end
def destroy_info
@@ -80,14 +80,17 @@ module LdapGroups
private
def find_filter
@filter = SynchronizedFilter.find(params[:ldap_filter_id])
@filter = SynchronizedFilter.find(params.expect(:ldap_filter_id))
end
def permitted_params
params
.require(:synchronized_filter)
.permit(:filter_string, :name, :ldap_auth_source_id, :group_name_attribute, :sync_users, :base_dn,
:member_lookup_attribute)
params.expect(synchronized_filter: %i[filter_string
name
ldap_auth_source_id
group_name_attribute
sync_users
base_dn
member_lookup_attribute])
end
end
end