Commit c032fe70c298c9a956858c82667626fee8e236e9

Authored by AntonioTerceiro
1 parent f2dcbb91

ActionItem114: using constants instead of symbols for safety



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@851 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 7 additions and 5 deletions   Show diff stats
config/environment.rb
@@ -83,11 +83,13 @@ Comatose.configure do |config| @@ -83,11 +83,13 @@ Comatose.configure do |config|
83 Profile.exists?(:identifier => request.parameters[:profile]) 83 Profile.exists?(:identifier => request.parameters[:profile])
84 # FIXME: also check permissions 84 # FIXME: also check permissions
85 end 85 end
86 - config.admin_includes << :authenticated_system  
87 - config.admin_includes << :needs_profile  
88 - config.admin_helpers << :application_helper  
89 - config.admin_helpers << :document_helper  
90 - config.admin_helpers << :language_helper 86 + config.admin_includes << AuthenticatedSystem
  87 + config.admin_includes << NeedsProfile
  88 +
  89 + config.admin_helpers << ApplicationHelper
  90 + config.admin_helpers << DocumentHelper
  91 + config.admin_helpers << LanguageHelper
  92 +
91 config.default_filter = '[No Filter]' 93 config.default_filter = '[No Filter]'
92 end 94 end
93 Comatose::AdminController.design :holder => 'environment' 95 Comatose::AdminController.design :holder => 'environment'