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 018ee8d commit 3bddbdcCopy full SHA for 3bddbdc
lib/view_component/template.rb
@@ -23,7 +23,6 @@ class File < Template
23
def initialize(component:, details:, path:)
24
# Rails 8.1 added a newline to the compiled ERB output in
25
# https://github.com/rails/rails/pull/53731
26
- lineno = Rails::VERSION::STRING > "8.0" ? -1 : 0
27
lineno =
28
if Rails::VERSION::MAJOR == 8 && Rails::VERSION::MINOR > 0 && details.handler == :erb
29
- 1
0 commit comments