From 8c04c76c86704bcbabcf4f76c2e27b9de8f02f75 Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Tue, 25 Jun 2013 13:47:19 +0200 Subject: [PATCH] have project status and planning element status enums loaded in development --- app/models/enumeration.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb index b7566fac48..2c7fd9b78a 100644 --- a/app/models/enumeration.rb +++ b/app/models/enumeration.rb @@ -133,6 +133,8 @@ private end # Force load the subclasses in development mode -require_dependency 'time_entry_activity' -require_dependency 'document_category' -require_dependency 'issue_priority' \ No newline at end of file +['time_entry_activity', 'document_category', 'issue_priority', + 'reported_project_status', 'planning_element_status'].each do |enum_subclass| + + require_dependency enum_subclass +end