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'])
master
Adam Davies 2009-06-10 14:56:46 +09:30
parent 3c50f3c5ce
commit 0e4f9ab13b
1 changed files with 0 additions and 2 deletions

View File

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