remove overrides doing the same as super()

This commit is contained in:
ulferts
2023-08-31 09:44:05 +02:00
parent 13b808525f
commit f5bdb718c2
+2 -8
View File
@@ -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