Commit e5aad75a authored by http://jneen.net/'s avatar http://jneen.net/

implement Presenter::Base#declarative_policy_delegate

parent 963b374d
...@@ -15,6 +15,11 @@ module Gitlab ...@@ -15,6 +15,11 @@ module Gitlab
super(user, action, overriden_subject || subject) super(user, action, overriden_subject || subject)
end end
# delegate all #can? queries to the subject
def declarative_policy_delegate
subject
end
class_methods do class_methods do
def presenter? def presenter?
true true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment