Removed auto-generate on boot, as routes don't seem to load at time of init

Add this code to environment.rb at bottom (after all other things are loaded):

# Generate routes now...
JavascriptRoutes.generate(:lite => ENV['ROUTES_JS_LITE'])
This commit is contained in:
Adam Davies 2009-06-10 14:56:46 +09:30
parent 3c50f3c5ce
commit 0e4f9ab13b

View file

@ -1,4 +1,2 @@
require 'javascript_routes'
ActionController::Routing::Routes.load!
JavascriptRoutes.generate(:lite => ENV['ROUTES_JS_LITE'])