From 9606f0afce34789fca37a21925b2284fcbc0ccf7 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 17 Oct 2009 14:14:15 +0200 Subject: small clean up in the content controller --- app/controllers/content_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index fde2570..db0e5e2 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb @@ -14,10 +14,8 @@ class ContentController < ApplicationController expires_in 10.minutes, :public => true if @page and @page.public? - template = @page.valid_template - render( - :file => template, + :file => @page.valid_template, :layout => true ) else -- cgit v1.3