Sha256: c40b2fd8c211fcde21bbd58fd9e57b117a577879389db9183e0a84d03eff54d9
Contents?: true
Size: 580 Bytes
Versions: 26
Compression:
Stored size: 580 Bytes
Contents
module Knitkit class WebsiteSectionsController < BaseController def index @current_user = current_user @contents = Article.find_published_by_section(@active_publication, @website_section) layout = @website_section.get_published_layout(@active_publication) unless layout.nil? @website_section.render_base_layout? ? (render :inline => layout, :layout => 'knitkit/base') : (render :inline => layout) else @website_section.render_base_layout? ? (render) : (render :layout => false) end end end end
Version data entries
26 entries across 26 versions & 1 rubygems