Added class reload support, expecting rack layer.
This commit is contained in:
parent
d38d5f96ac
commit
28446b0400
5 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
if Rails.configuration.cache_classes
|
||||||
require file
|
require file
|
||||||
|
else
|
||||||
|
load file
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
Loading…
Reference in a new issue