We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c91a71b commit 30d1137Copy full SHA for 30d1137
lib/view_component/template.rb
@@ -57,7 +57,7 @@ def initialize(component:, inline_template:)
57
# Rails 8.1 added a newline to the compiled ERB output in
58
# https://github.com/rails/rails/pull/53731
59
lineno =
60
- if Rails::VERSION::MAJOR == 8 && Rails::VERSION::MINOR > 0 && details.handler == :erb
+ if Rails::VERSION::MAJOR >= 8 && Rails::VERSION::MINOR > 0 && details.handler == :erb
61
inline_template.lineno - 1
62
else
63
inline_template.lineno
0 commit comments