summaryrefslogtreecommitdiff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2019-01-03 19:26:13 +0100
committerJasper Maes <jaspermaes.jm@gmail.com>2019-01-11 19:28:38 +0100
commit16c1c0b184dad17df6d36562ac851df204e8a214 (patch)
treeb1a68531676852dd39493c8b6e2346673b2a5f1b /app/models/concerns
parentfe4f8cad21155c53aaf07a137d27bec9039a6379 (diff)
downloadgitlab-ce-16c1c0b184dad17df6d36562ac851df204e8a214.tar.gz
Fix deprecation: Passing an argument to force an association to reload is now deprecated
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/manual_inverse_association.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/manual_inverse_association.rb b/app/models/concerns/manual_inverse_association.rb
index e18edd33ba7..ff61412767e 100644
--- a/app/models/concerns/manual_inverse_association.rb
+++ b/app/models/concerns/manual_inverse_association.rb
@@ -5,8 +5,8 @@ module ManualInverseAssociation
class_methods do
def manual_inverse_association(association, inverse)
- define_method(association) do |*args|
- super(*args).tap do |value|
+ define_method(association) do
+ super().tap do |value|
next unless value
child_association = value.association(inverse)