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 overrides doing the same as super()

ulfertsf5bdb718c2cc
diff --git a/app/contracts/base_contract.rb b/app/contracts/base_contract.rb
index 66906aa8214..de8a0209c30 100644
--- a/app/contracts/base_contract.rb
+++ b/app/contracts/base_contract.rb
@@ -142,19 +142,13 @@ class BaseContract < Disposable::Twin
writable_attributes.include?(attribute.to_s)
end
- def valid?(*_args)
- super()
-
- errors.empty?
- end
-
# Provide same interface with valid? and validate
# as with AM::Validations
#
# Do not use alias_method as this will not work when
# valid? is overridden in subclasses
- def validate(*args)
- valid?(*args)
+ def validate(*)
+ valid?(*)
end
# Methods required to get ActiveModel error messages working