Skip to content

Commit 30d1137

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

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
@@ -57,7 +57,7 @@ def initialize(component:, inline_template:)
5757
# Rails 8.1 added a newline to the compiled ERB output in
5858
# https://github.com/rails/rails/pull/53731
5959
lineno =
60-
if Rails::VERSION::MAJOR == 8 && Rails::VERSION::MINOR > 0 && details.handler == :erb
60+
if Rails::VERSION::MAJOR >= 8 && Rails::VERSION::MINOR > 0 && details.handler == :erb
6161
inline_template.lineno - 1
6262
else
6363
inline_template.lineno

0 commit comments

Comments
 (0)