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

implement Presenter::Base#declarative_policy_delegate

parent f1abd9bc
......@@ -15,6 +15,11 @@ module Gitlab
super(user, action, overriden_subject || subject)
end
# delegate all #can? queries to the subject
def declarative_policy_delegate
subject
end
class_methods do
def presenter?
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