From 58ca9eabccdfc83ad2bd7fd10c74ac3855828fb2 Mon Sep 17 00:00:00 2001 From: Chris Todorov Date: Wed, 16 Oct 2024 14:37:24 -0700 Subject: [PATCH] Update Tailwind executable call for v3.0 As of `tailwindcss-rails` `>= 3.0` the command for the executable was extracted to a separate `tailwindcss-ruby` gem, which causes an error in the rake tasks we generate for the `solidus_admin`. The error this fixes is ``` NoMethodError: undefined method `executable' for Tailwindcss::Commands:Module ``` Co-authored-by: Benjamin Willems --- admin/lib/solidus_admin/install_tailwindcss.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/lib/solidus_admin/install_tailwindcss.rb b/admin/lib/solidus_admin/install_tailwindcss.rb index 1b882a068e..5bd0137743 100644 --- a/admin/lib/solidus_admin/install_tailwindcss.rb +++ b/admin/lib/solidus_admin/install_tailwindcss.rb @@ -39,7 +39,7 @@ namespace :solidus_admin do namespace :tailwindcss do root = Rails.root - tailwindcss = Tailwindcss::Commands.executable + tailwindcss = Tailwindcss::Ruby.executable tailwindcss_command = [ tailwindcss,