From c032fe70c298c9a956858c82667626fee8e236e9 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Tue, 6 Nov 2007 14:05:00 +0000 Subject: [PATCH] ActionItem114: using constants instead of symbols for safety --- config/environment.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/config/environment.rb b/config/environment.rb index 980a9e5..114006f 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -83,11 +83,13 @@ Comatose.configure do |config| Profile.exists?(:identifier => request.parameters[:profile]) # FIXME: also check permissions end - config.admin_includes << :authenticated_system - config.admin_includes << :needs_profile - config.admin_helpers << :application_helper - config.admin_helpers << :document_helper - config.admin_helpers << :language_helper + config.admin_includes << AuthenticatedSystem + config.admin_includes << NeedsProfile + + config.admin_helpers << ApplicationHelper + config.admin_helpers << DocumentHelper + config.admin_helpers << LanguageHelper + config.default_filter = '[No Filter]' end Comatose::AdminController.design :holder => 'environment' -- libgit2 0.21.2