Skip to content

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

remove additionally extending with ClassMethods from included/prepanded of acts_as_…

Ivan Kuchin2cf1ab0c0370
diff --git a/lib_static/open_project/acts/favorable.rb b/lib_static/open_project/acts/favorable.rb
index 0a94279f6d7..8a8b20f4a7f 100644
--- a/lib_static/open_project/acts/favorable.rb
+++ b/lib_static/open_project/acts/favorable.rb
@@ -80,10 +80,6 @@ module OpenProject
end
module InstanceMethods
- def self.prepended(base)
- base.extend ClassMethods
- end
-
def add_favoring_user(user)
return if favorites.exists?(user_id: user.id)
diff --git a/lib_static/open_project/acts/watchable.rb b/lib_static/open_project/acts/watchable.rb
index 1858d388b11..7a0bc56e232 100644
--- a/lib_static/open_project/acts/watchable.rb
+++ b/lib_static/open_project/acts/watchable.rb
@@ -91,10 +91,6 @@ module OpenProject
end
module InstanceMethods
- def self.prepended(base)
- base.extend ClassMethods
- end
-
def possible_watcher?(user)
user.allowed_based_on_permission_context?(self.class.acts_as_watchable_permission,
project:,
diff --git a/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rb
index adb8e4c4bcf..88e9ec7eb1f 100644
--- a/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rb
+++ b/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rb
@@ -60,7 +60,6 @@ module Redmine
module InstanceMethods
def self.included(base)
- base.extend ClassMethods
base.extend HumanAttributeName
end
diff --git a/lib_static/plugins/acts_as_event/lib/acts_as_event.rb b/lib_static/plugins/acts_as_event/lib/acts_as_event.rb
index c7e97375de5..3110a7003cb 100644
--- a/lib_static/plugins/acts_as_event/lib/acts_as_event.rb
+++ b/lib_static/plugins/acts_as_event/lib/acts_as_event.rb
@@ -56,10 +56,6 @@ module Redmine
end
module InstanceMethods
- def self.included(base)
- base.extend ClassMethods
- end
-
%w(datetime title description author name type).each do |attr|
src = <<-END_SRC
def event_#{attr}
diff --git a/lib_static/plugins/acts_as_searchable/lib/acts_as_searchable.rb b/lib_static/plugins/acts_as_searchable/lib/acts_as_searchable.rb
index 6f036542b3e..fdedbe088c0 100644
--- a/lib_static/plugins/acts_as_searchable/lib/acts_as_searchable.rb
+++ b/lib_static/plugins/acts_as_searchable/lib/acts_as_searchable.rb
@@ -73,10 +73,6 @@ module Redmine
end
module InstanceMethods
- def self.included(base)
- base.extend ClassMethods
- end
-
module ClassMethods
# Searches the model for the given tokens
# projects argument can be either nil (will search all projects), a project or an array of projects