From 7a926e7be83f8a93202c18acd03b1678866a0a16 Mon Sep 17 00:00:00 2001 From: Maximo Mussini Date: Fri, 23 Aug 2024 11:52:06 -0300 Subject: [PATCH] fix: explicitly require open struct before using JsFromRoutes --- playground/vanilla/config/initializers/js_from_routes.rb | 2 ++ 1 file changed, 2 insertions(+) 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"