diff options
author | Rémy Coutable <remy@rymai.me> | 2017-12-05 17:03:16 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-12-12 20:14:58 +0300 |
commit | 50d7c356c2d1622203b518bf0f3d5cbf1860099a (patch) | |
tree | 4b591c06bb2eea41304985062150c5db4cd5ea67 /lib/gitlab/view/presenter | |
parent | 2cf3fc18a6e111a820f9842bb1d939790e8625eb (diff) |
Present member collection at the controller level
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/gitlab/view/presenter')
-rw-r--r-- | lib/gitlab/view/presenter/factory.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/view/presenter/factory.rb b/lib/gitlab/view/presenter/factory.rb index d172d61e2c9..570f0723e39 100644 --- a/lib/gitlab/view/presenter/factory.rb +++ b/lib/gitlab/view/presenter/factory.rb @@ -16,7 +16,7 @@ module Gitlab attr_reader :subject, :attributes def presenter_class - "#{subject.class.name}Presenter".constantize + attributes.delete(:presenter_class) { "#{subject.class.name}Presenter".constantize } end end end |