Module: Presentable

Instance Method Summary collapse

Instance Method Details

#present(**attributes) ⇒ Object


12
13
14
15
16
# File 'app/models/concerns/presentable.rb', line 12

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