From 737ad84d169af7dd07fc10ff960c83d4595b1d74 Mon Sep 17 00:00:00 2001 From: LeandroNunes Date: Sat, 20 Oct 2007 05:44:49 +0000 Subject: [PATCH] ActionItem85: bli --- app/controllers/public/category_controller.rb | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/app/controllers/public/category_controller.rb b/app/controllers/public/category_controller.rb index f891e30..b86ef13 100644 --- a/app/controllers/public/category_controller.rb +++ b/app/controllers/public/category_controller.rb @@ -1,5 +1,13 @@ class CategoryController < ApplicationController + design :holder => 'environment' + + before_filter :load_default_enviroment + + def load_default_enviroment + Environment.default + end + before_filter :load_category, :only => [ :view ] def load_category path = params[:path].join('/') -- libgit2 0.21.2