gitlab-org--gitlab-foss/app/models/concerns/presentable.rb
Rémy Coutable 78874519db Add Presentable concern
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-18 16:38:34 +01:00

7 lines
141 B
Ruby

module Presentable
def present(**attributes)
Gitlab::View::Presenter::Factory
.new(self, attributes)
.fabricate!
end
end