Put back impressionist where it was commented out

This commit is contained in:
Christophe Vilayphiou committed 2012-08-04 15:42:53 +08:00
1 parent 50b313976e
commit 6a94d4f550
4 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@ class PagesController < ApplicationController
@item = Page.find_by_name('home')
if @item
#impressionist(@item)
impressionist(@item)
render_page
else
render :text => 'You need a home page'
@@ -21,7 +21,7 @@ class PagesController < ApplicationController
#begin
@item = Item.first(:conditions => {:path => params[:page_name]})
if @item && @item.is_published && (@item.enabled_for.nil? ? true : @item.enabled_for.include?(I18n.locale.to_s))
# impressionist(@item)
impressionist(@item)
case @item.class.to_s
when 'Page'
render_page