summaryrefslogtreecommitdiff
path: root/app/models/concerns/participable.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-05-14 13:15:13 +0200
committerDouwe Maan <douwe@gitlab.com>2015-05-14 13:15:13 +0200
commit77dc71d5502eb83299b92ea065ec90a420a7e3d3 (patch)
treef1ba0696ca931a48fc5382225e67556fb15a30df /app/models/concerns/participable.rb
parent910794bae5a91479f41468ebc345db680a33b20e (diff)
downloadgitlab-ce-77dc71d5502eb83299b92ea065ec90a420a7e3d3.tar.gz
Fix mentioning of private groups.
Diffstat (limited to 'app/models/concerns/participable.rb')
-rw-r--r--app/models/concerns/participable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/participable.rb b/app/models/concerns/participable.rb
index 7a5e4876ff2..a4832204f7b 100644
--- a/app/models/concerns/participable.rb
+++ b/app/models/concerns/participable.rb
@@ -40,7 +40,7 @@ module Participable
meth = method(attr)
value =
- if meth.arity == 1
+ if meth.arity == 1 || meth.arity == -1
meth.call(current_user)
else
meth.call