debian-mirror-gitlab/app/models/concerns/presentable.rb

8 lines
141 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
module Presentable
def present(**attributes)
Gitlab::View::Presenter::Factory
.new(self, attributes)
.fabricate!
end
end