Added class reload support, expecting rack layer.

This commit is contained in:
Martin Edenhofer 2014-02-19 05:31:36 +01:00
parent d38d5f96ac
commit 28446b0400
5 changed files with 5 additions and 1 deletions

View file

@ -12,7 +12,11 @@ Zammad::Application.routes.draw do
dir = File.expand_path('../', __FILE__) dir = File.expand_path('../', __FILE__)
files = Dir.glob( "#{dir}/routes/*.rb" ) files = Dir.glob( "#{dir}/routes/*.rb" )
for file in files for file in files
require file if Rails.configuration.cache_classes
require file
else
load file
end
end end
end end