debian-mirror-gitlab/app/models/concerns/presentable.rb
2017-08-17 22:00:37 +05:30

7 lines
141 B
Ruby

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