Commit 737ad84d169af7dd07fc10ff960c83d4595b1d74
1 parent
0d7f7589
Exists in
master
and in
29 other branches
ActionItem85: bli
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@791 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
app/controllers/public/category_controller.rb
| 1 | class CategoryController < ApplicationController | 1 | class CategoryController < ApplicationController |
| 2 | 2 | ||
| 3 | + design :holder => 'environment' | ||
| 4 | + | ||
| 5 | + before_filter :load_default_enviroment | ||
| 6 | + | ||
| 7 | + def load_default_enviroment | ||
| 8 | + Environment.default | ||
| 9 | + end | ||
| 10 | + | ||
| 3 | before_filter :load_category, :only => [ :view ] | 11 | before_filter :load_category, :only => [ :view ] |
| 4 | def load_category | 12 | def load_category |
| 5 | path = params[:path].join('/') | 13 | path = params[:path].join('/') |