Module: Admin::NewsHelper

Defined in:
app/helpers/admin/news_helper.rb

Instance Method Summary collapse

Instance Method Details

#news_page_options(news_pages) ⇒ Object



5
6
7
8
9
10
11
# File 'app/helpers/admin/news_helper.rb', line 5

def news_page_options(news_pages)
  options_for_select(
    news_pages.map do |p|
      [news_section_name(p, news_pages).gsub("»", "ยป"), p.id]
    end
  )
end