Commit e1a4895abd4f8747602d0486509b2023fe893157

Authored by LeandroNunes
1 parent 8df7c79d

ActionItem114: putting fixme tags

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@808 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/controllers/application.rb
@@ -39,7 +39,7 @@ class ApplicationController < ActionController::Base @@ -39,7 +39,7 @@ class ApplicationController < ActionController::Base
39 39
40 def load_profile 40 def load_profile
41 @profile = Profile.find_by_identifier(params[:profile]) 41 @profile = Profile.find_by_identifier(params[:profile])
42 - @profile ||= Profile.find(:first) #This is not correct it was made to the system don't crash 42 + @profile ||= Profile.find(:first) #FIXME This is not correct it was made to the system don't crash
43 raise "The profile must be loaded %s" % params[:profile].to_s if @profile.nil? 43 raise "The profile must be loaded %s" % params[:profile].to_s if @profile.nil?
44 end 44 end
45 45
app/controllers/environment_admin/admin_panel_controller.rb
@@ -2,6 +2,8 @@ class AdminPanelController < EnvironmentAdminController @@ -2,6 +2,8 @@ class AdminPanelController < EnvironmentAdminController
2 2
3 protect [:index], 'view_environment_admin_panel', :environment 3 protect [:index], 'view_environment_admin_panel', :environment
4 4
  5 + #FIXME This is not necessary because the application controller define the envrioment
  6 + # as the default holder
5 before_filter :load_default_enviroment 7 before_filter :load_default_enviroment
6 8
7 design :holder => 'environment' 9 design :holder => 'environment'
app/controllers/public/category_controller.rb
1 class CategoryController < ApplicationController 1 class CategoryController < ApplicationController
2 2
3 before_filter :load_default_enviroment 3 before_filter :load_default_enviroment
4 - 4 +
  5 +
  6 + #FIXME This is not necessary because the application controller define the envrioment
  7 + # as the default holder
  8 +
5 design :holder => 'environment' 9 design :holder => 'environment'
6 10
7 def load_default_enviroment 11 def load_default_enviroment