Module: Pageflow::HelpEntriesHelper Private

Defined in:
app/helpers/pageflow/help_entries_helper.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#help_entries_menu(config) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
# File 'app/helpers/pageflow/help_entries_helper.rb', line 10

def help_entries_menu(config)
  render('pageflow/help_entries/menu', help_entries: config.help_entries)
end

#help_entry_li(help_entry, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
17
# File 'app/helpers/pageflow/help_entries_helper.rb', line 14

def help_entry_li(help_entry, &block)
  css_class = help_entry.children.present? ? 'expandable' : nil
  (:li, class: css_class, &block)
end

#help_entry_sections(config) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



4
5
6
7
8
# File 'app/helpers/pageflow/help_entries_helper.rb', line 4

def help_entry_sections(config)
  render(partial: 'pageflow/help_entries/section',
         collection: config.help_entries.flat,
         as: :help_entry)
end