Skip to content

Commit

Permalink
Store #render_section in SectionHelper instead of PageHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
rorJeremy committed Jan 30, 2019
1 parent b2b642b commit ea2bff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.

This file was deleted.

Expand Up @@ -5,6 +5,10 @@
module WCC::Contentful::App::SectionHelper
extend self

def render_section(section, index)
render('components/section', section: section, index: index)
end

def section_template_name(section)
section.class.name.demodulize.underscore.sub('section_', '')
end
Expand Down

0 comments on commit ea2bff2

Please sign in to comment.