Sha256: a0b14f2c46a2d9d6c26b7623cc3d36dfa9a5a605f759b28587ac6f79f9649adc
Contents?: true
Size: 414 Bytes
Versions: 9
Compression:
Stored size: 414 Bytes
Contents
class PagesController < ApplicationController def index @page = Page.find_page params[:path] render :inline => @page.render(drops), :layout => @page.render_layout, :content_type => @page.content_type end private def drops { :self => PufferPages::Liquid::PageDrop.new(@page, request), :root => PufferPages::Liquid::PageDrop.new(Page.root, request) }.stringify_keys end end
Version data entries
9 entries across 9 versions & 1 rubygems