Skip to content

Commit 2e3bee8

Browse files
committed
Rename on_stopped callback to after_stopped for Puma 7
1 parent 7fb4975 commit 2e3bee8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/puma/plugin/tailwindcss.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ def start(launcher)
2020
end
2121
end
2222

23-
launcher.events.on_stopped { stop_tailwind }
23+
if Gem::Version.new(Puma::Const::PUMA_VERSION) >= Gem::Version.new("7")
24+
launcher.events.after_stopped { stop_tailwind }
25+
else
26+
launcher.events.on_stopped { stop_tailwind }
27+
end
2428

2529
in_background do
2630
monitor_tailwind

0 commit comments

Comments
 (0)