Module: Kuhsaft::Cms::PagesHelper

Defined in:
app/helpers/kuhsaft/cms/pages_helper.rb

Instance Method Summary collapse

Instance Method Details

#content_tab_active(page) ⇒ Object



5
6
7
# File 'app/helpers/kuhsaft/cms/pages_helper.rb', line 5

def content_tab_active(page)
  :active if page.persisted?
end

#metadata_tab_active(page) ⇒ Object



9
10
11
# File 'app/helpers/kuhsaft/cms/pages_helper.rb', line 9

def (page)
  :active unless page.persisted?
end