Module: Spina::PagesHelper

Defined in:
app/helpers/spina/pages_helper.rb

Instance Method Summary collapse

Instance Method Details

#content(part_name) ⇒ Object



4
5
6
# File 'app/helpers/spina/pages_helper.rb', line 4

def content(part_name)
  current_page.content(part_name)
end

#current_pageObject



12
13
14
# File 'app/helpers/spina/pages_helper.rb', line 12

def current_page
  Current.page
end

#has_content?(part_name) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'app/helpers/spina/pages_helper.rb', line 8

def has_content?(part_name)
  current_page.has_content?(part_name)
end