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 39  
40 40 def load_profile
41 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 43 raise "The profile must be loaded %s" % params[:profile].to_s if @profile.nil?
44 44 end
45 45  
... ...
app/controllers/environment_admin/admin_panel_controller.rb
... ... @@ -2,6 +2,8 @@ class AdminPanelController < EnvironmentAdminController
2 2  
3 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 7 before_filter :load_default_enviroment
6 8  
7 9 design :holder => 'environment'
... ...
app/controllers/public/category_controller.rb
1 1 class CategoryController < ApplicationController
2 2  
3 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 9 design :holder => 'environment'
6 10  
7 11 def load_default_enviroment
... ...