akkounts/app/services/ldap_manager/update_email.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
219 B
Ruby

module LdapManager
class UpdateEmail < LdapManagerService
def initialize(dn:, address:)
@dn = dn
@address = address
end
def call
replace_attribute @dn, :mail, @address
end
end
end