Class: Decidim::Admin::SecondaryMenuPresenter

Inherits:
MenuPresenter
  • Object
show all
Defined in:
app/presenters/decidim/admin/secondary_menu_presenter.rb

Instance Method Summary collapse

Instance Method Details

#render(render_options = {}) ⇒ Object



6
7
8
9
10
11
# File 'app/presenters/decidim/admin/secondary_menu_presenter.rb', line 6

def render(render_options = {}, &)
  output = []
  output.push render_title(render_options) if render_options.fetch(:title, false)
  output.push render_menu(&)
  safe_join(output)
end