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:
parent
3c50f3c5ce
commit
0e4f9ab13b
1 changed files with 0 additions and 2 deletions
2
init.rb
2
init.rb
|
@ -1,4 +1,2 @@
|
|||
require 'javascript_routes'
|
||||
|
||||
ActionController::Routing::Routes.load!
|
||||
JavascriptRoutes.generate(:lite => ENV['ROUTES_JS_LITE'])
|
Loading…
Add table
Reference in a new issue