gitlab-org--gitlab-foss/app/models/concerns/presentable.rb
2017-02-23 09:31:56 -06:00

7 lines
141 B
Ruby

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