Commit e899fcf64fe8ec261ac1222127326b50ce14eb99
1 parent
737ad84d
Exists in
master
and in
29 other branches
ActionItem85: bli
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@792 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/controllers/environment_admin/admin_panel_controller.rb
| @@ -7,7 +7,7 @@ class AdminPanelController < EnvironmentAdminController | @@ -7,7 +7,7 @@ class AdminPanelController < EnvironmentAdminController | ||
| 7 | before_filter :load_default_enviroment | 7 | before_filter :load_default_enviroment |
| 8 | 8 | ||
| 9 | def load_default_enviroment | 9 | def load_default_enviroment |
| 10 | - Environment.default | 10 | + @environment = Environment.default |
| 11 | end | 11 | end |
| 12 | 12 | ||
| 13 | end | 13 | end |
app/controllers/public/category_controller.rb
| @@ -5,7 +5,7 @@ class CategoryController < ApplicationController | @@ -5,7 +5,7 @@ class CategoryController < ApplicationController | ||
| 5 | before_filter :load_default_enviroment | 5 | before_filter :load_default_enviroment |
| 6 | 6 | ||
| 7 | def load_default_enviroment | 7 | def load_default_enviroment |
| 8 | - Environment.default | 8 | + @environment = Environment.default |
| 9 | end | 9 | end |
| 10 | 10 | ||
| 11 | before_filter :load_category, :only => [ :view ] | 11 | before_filter :load_category, :only => [ :view ] |