OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Use the RailsComponent option method instead of a delegate
Dombi Attilaa51de7f99b2f
diff --git a/app/components/oauth/applications/row_component.rb b/app/components/oauth/applications/row_component.rbindex 375a6d5db4c..219120e7760 100644--- a/app/components/oauth/applications/row_component.rb+++ b/app/components/oauth/applications/row_component.rb@@ -35,6 +35,8 @@ module OAuthinclude ::OAuthHelperinclude ::OpenProject::ObjectLinking+ property :confidential+def applicationmodelend@@ -66,8 +68,6 @@ module OAuthendend- delegate :confidential, to: :application-def edit_linklink_to(I18n.t(:button_edit),diff --git a/modules/ldap_groups/app/components/ldap_groups/synchronized_filters/row_component.rb b/modules/ldap_groups/app/components/ldap_groups/synchronized_filters/row_component.rbindex 6bc1b250095..41f51864b77 100644--- a/modules/ldap_groups/app/components/ldap_groups/synchronized_filters/row_component.rb+++ b/modules/ldap_groups/app/components/ldap_groups/synchronized_filters/row_component.rb@@ -34,6 +34,8 @@ module LdapGroupsinclude ::IconsHelperinclude ::PasswordHelper+ property :base_dn+def synchronized_filtermodelend@@ -46,8 +48,6 @@ module LdapGroupslink_to synchronized_filter.auth_source.name, edit_ldap_auth_source_path(synchronized_filter.auth_source)end- delegate :base_dn, to: :synchronized_filter-def groupssynchronized_filter.groups.countend