Module: Brightcontent::PagesHelper
- Defined in:
- app/helpers/brightcontent/pages_helper.rb
Instance Method Summary collapse
Instance Method Details
#page_prefix(depth) ⇒ Object
9 10 11 |
# File 'app/helpers/brightcontent/pages_helper.rb', line 9 def page_prefix(depth) "-" * depth end |
#page_selector(current_page) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/brightcontent/pages_helper.rb', line 3 def page_selector(current_page) Brightcontent.page_model.all.map do |page| ["#{page_prefix(page.depth)} #{page.name}", page.id] if page != current_page end.compact end |