akkounts/app/services/ldap_manager/update_display_name.rb
Râu Cao 179a82d2dd
Use keyword arguments for ApplicationService calls
Not all services are using keywords, which breaks those calls in Ruby 3
2024-02-02 15:50:25 +02:00

13 lines
252 B
Ruby

module LdapManager
class UpdateDisplayName < LdapManagerService
def initialize(dn:, display_name:)
@dn = dn
@display_name = display_name
end
def call
replace_attribute @dn, :displayName, @display_name
end
end
end