Use keyword arguments for ApplicationService calls

Not all services are using keywords, which breaks those calls in Ruby 3
This commit is contained in:
2024-02-02 15:50:25 +02:00
parent 420442c1c0
commit 179a82d2dd
21 changed files with 44 additions and 45 deletions

View File

@@ -11,6 +11,6 @@ class AppCatalog::WebApp < ApplicationRecord
if: Proc.new { |a| a.url.present? }
def update_metadata
AppCatalogManager::UpdateMetadata.call(self)
AppCatalogManager::UpdateMetadata.call(app: self)
end
end

View File

@@ -92,7 +92,7 @@ class User < ApplicationRecord
def devise_after_confirmation
if ldap_entry[:mail] != self.email
# E-Mail update confirmed
LdapManager::UpdateEmail.call(self.dn, self.email)
LdapManager::UpdateEmail.call(dn: self.dn, address: self.email)
else
# E-Mail from signup confirmed (i.e. account activation)
@@ -164,7 +164,7 @@ class User < ApplicationRecord
end
def avatar
@avatar_base64 ||= LdapManager::FetchAvatar.call(cn: cn, ou: ou)
@avatar_base64 ||= LdapManager::FetchAvatar.call(cn: cn)
end
def services_enabled