From c084524dcc2414fe9d3d8492e28a6c74968bb731 Mon Sep 17 00:00:00 2001 From: Cristian Molina Date: Mon, 27 Nov 2023 09:56:52 -0300 Subject: [PATCH] Use version constant to download & install js Co-authored-by: Julian Pasquale --- lib/generators/htmx/install_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/htmx/install_generator.rb b/lib/generators/htmx/install_generator.rb index e5634bc..17e77bc 100644 --- a/lib/generators/htmx/install_generator.rb +++ b/lib/generators/htmx/install_generator.rb @@ -55,7 +55,7 @@ def add_to_manifest(manifest, text) end def setup_bun - run 'bun add htmx.org' + run "bun add htmx.org@#{Htmx::Rails::HTMX_VERSION}" add_to_manifest(manifest('app/javascript'), IMPORTMAP_SETUP) end