diff --git a/playground/vanilla/config/initializers/js_from_routes.rb b/playground/vanilla/config/initializers/js_from_routes.rb index f42c4cf..c48cd9c 100644 --- a/playground/vanilla/config/initializers/js_from_routes.rb +++ b/playground/vanilla/config/initializers/js_from_routes.rb @@ -1,3 +1,5 @@ +require "ostruct" + if Rails.env.development? JsFromRoutes.config do |config| config.file_suffix = "Api.ts"