Skip to content

Commit c91a71b

Browse files
joelhawksleySpone
andauthored
Update lib/view_component/template.rb
Co-authored-by: Hans Lemuet <[email protected]>
1 parent ea7d356 commit c91a71b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/view_component/template.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def initialize(component:, details:, path:)
2424
# Rails 8.1 added a newline to the compiled ERB output in
2525
# https://github.com/rails/rails/pull/53731
2626
lineno =
27-
if Rails::VERSION::MAJOR == 8 && Rails::VERSION::MINOR > 0 && details.handler == :erb
27+
if Rails::VERSION::MAJOR >= 8 && Rails::VERSION::MINOR > 0 && details.handler == :erb
2828
- 1
2929
else
3030
0

0 commit comments

Comments
 (0)